Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
CRAP
100.00% covered (success)
100.00%
1 / 1
NickRepository
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
3
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getById
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getByProperties
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Repository;
4
5use App\Entity\Nick;
6use App\Entity\Qualifier;
7use App\Entity\Subject;
8use App\Enum\WordGender;
9use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
10use Doctrine\Persistence\ManagerRegistry;
11
12/**
13 * @extends ServiceEntityRepository<Nick>
14 *
15 * @author Wilhelm Zwertvaegher
16 */
17class NickRepository extends ServiceEntityRepository implements NickRepositoryInterface
18{
19    public function __construct(ManagerRegistry $registry)
20    {
21        parent::__construct($registry, Nick::class);
22    }
23
24    public function getById(int $id): ?Nick
25    {
26        return parent::find($id);
27    }
28
29    public function getByProperties(Subject $subject, Qualifier $qualifier, WordGender $targetGender): ?Nick
30    {
31        return parent::findOneBy(['subject' => $subject, 'qualifier' => $qualifier, 'targetGender' => $targetGender]);
32    }
33}

Paths

Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once. Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

NickRepository->__construct
19    public function __construct(ManagerRegistry $registry)
20    {
21        parent::__construct($registry, Nick::class);
22    }
NickRepository->getById
24    public function getById(int $id): ?Nick
25    {
26        return parent::find($id);
27    }
NickRepository->getByProperties
29    public function getByProperties(Subject $subject, Qualifier $qualifier, WordGender $targetGender): ?Nick
30    {
31        return parent::findOneBy(['subject' => $subject, 'qualifier' => $qualifier, 'targetGender' => $targetGender]);
32    }
{main}
3namespace App\Repository;
4
5use App\Entity\Nick;
6use App\Entity\Qualifier;
7use App\Entity\Subject;
8use App\Enum\WordGender;
9use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
10use Doctrine\Persistence\ManagerRegistry;
11
12/**
13 * @extends ServiceEntityRepository<Nick>
14 *
15 * @author Wilhelm Zwertvaegher
16 */
17class NickRepository extends ServiceEntityRepository implements NickRepositoryInterface
18{
19    public function __construct(ManagerRegistry $registry)
20    {
21        parent::__construct($registry, Nick::class);
22    }
23
24    public function getById(int $id): ?Nick
25    {
26        return parent::find($id);
27    }
28
29    public function getByProperties(Subject $subject, Qualifier $qualifier, WordGender $targetGender): ?Nick
30    {
31        return parent::findOneBy(['subject' => $subject, 'qualifier' => $qualifier, 'targetGender' => $targetGender]);
32    }