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
IdentityDto
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
 getEmail
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
 getUsername
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
 getRoles
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\Auth\Infrastructure\Dto;
4
5use App\Auth\Domain\Model\Identity;
6use Symfony\Component\ObjectMapper\Attribute\Map;
7
8#[Map(source: Identity::class)]
9final class IdentityDto
10{
11    public string $email;
12
13    public string $username;
14
15    /**
16     * @var list<string>
17     */
18    public array $roles;
19
20    public function getEmail(): string
21    {
22        return $this->email;
23    }
24
25    public function getUsername(): string
26    {
27        return $this->username;
28    }
29
30    /**
31     * @return list<string>
32     */
33    public function getRoles(): array
34    {
35        return $this->roles;
36    }
37}

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.

IdentityDto->getEmail
22        return $this->email;
23    }
IdentityDto->getRoles
35        return $this->roles;
36    }
IdentityDto->getUsername
27        return $this->username;
28    }
{main}
3namespace App\Auth\Infrastructure\Dto;
4
5use App\Auth\Domain\Model\Identity;
6use Symfony\Component\ObjectMapper\Attribute\Map;
7
8#[Map(source: Identity::class)]
9final class IdentityDto
10{
11    public string $email;
12
13    public string $username;
14
15    /**
16     * @var list<string>
17     */
18    public array $roles;
19
20    public function getEmail(): string
21    {
22        return $this->email;
23    }
24
25    public function getUsername(): string
26    {
27        return $this->username;
28    }
29
30    /**
31     * @return list<string>
32     */
33    public function getRoles(): array
34    {
35        return $this->roles;
36    }