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
ReportRepository
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
 getByNickIdAndSenderEmail
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\Report;
6use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
7use Doctrine\Persistence\ManagerRegistry;
8
9/**
10 * @extends ServiceEntityRepository<Report>
11 *
12 * @author Wilhelm Zwertvaegher
13 */
14class ReportRepository extends ServiceEntityRepository implements ReportRepositoryInterface
15{
16    public function __construct(ManagerRegistry $registry)
17    {
18        parent::__construct($registry, Report::class);
19    }
20
21    public function getById(int $id): ?Report
22    {
23        return parent::find($id);
24    }
25
26    public function getByNickIdAndSenderEmail(int $nickId, string $email): ?Report
27    {
28        return parent::findOneBy(['nick' => $nickId, 'senderEmail' => $email]);
29    }
30}

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.

ReportRepository->__construct
16    public function __construct(ManagerRegistry $registry)
17    {
18        parent::__construct($registry, Report::class);
19    }
ReportRepository->getById
21    public function getById(int $id): ?Report
22    {
23        return parent::find($id);
24    }
ReportRepository->getByNickIdAndSenderEmail
26    public function getByNickIdAndSenderEmail(int $nickId, string $email): ?Report
27    {
28        return parent::findOneBy(['nick' => $nickId, 'senderEmail' => $email]);
29    }
{main}
3namespace App\Repository;
4
5use App\Entity\Report;
6use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
7use Doctrine\Persistence\ManagerRegistry;
8
9/**
10 * @extends ServiceEntityRepository<Report>
11 *
12 * @author Wilhelm Zwertvaegher
13 */
14class ReportRepository extends ServiceEntityRepository implements ReportRepositoryInterface
15{
16    public function __construct(ManagerRegistry $registry)
17    {
18        parent::__construct($registry, Report::class);
19    }
20
21    public function getById(int $id): ?Report
22    {
23        return parent::find($id);
24    }
25
26    public function getByNickIdAndSenderEmail(int $nickId, string $email): ?Report
27    {
28        return parent::findOneBy(['nick' => $nickId, 'senderEmail' => $email]);
29    }