Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| IdentityCompletedEvent | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getIdentity | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Auth\Domain\Event; |
| 4 | |
| 5 | use App\Auth\Domain\Model\Identity; |
| 6 | use App\Shared\Domain\Event\DomainEvent; |
| 7 | |
| 8 | /** |
| 9 | * @author Wilhelm Zwertvaegher |
| 10 | */ |
| 11 | class IdentityCompletedEvent extends DomainEvent |
| 12 | { |
| 13 | private const string TYPE = 'auth.identity.completed'; |
| 14 | |
| 15 | private readonly Identity $identity; |
| 16 | |
| 17 | /** |
| 18 | * @param Identity $identity |
| 19 | * @param array<string, string|int>|null $metadata |
| 20 | */ |
| 21 | public function __construct(Identity $identity, ?array $metadata = null) |
| 22 | { |
| 23 | parent::__construct(self::TYPE, $metadata); |
| 24 | $this->identity = $identity; |
| 25 | } |
| 26 | |
| 27 | public function getIdentity(): Identity |
| 28 | { |
| 29 | return $this->identity; |
| 30 | } |
| 31 | } |
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.
| 21 | public function __construct(Identity $identity, ?array $metadata = null) |
| 22 | { |
| 23 | parent::__construct(self::TYPE, $metadata); |
| 24 | $this->identity = $identity; |
| 25 | } |
| 29 | return $this->identity; |
| 30 | } |
| 3 | namespace App\Auth\Domain\Event; |
| 4 | |
| 5 | use App\Auth\Domain\Model\Identity; |
| 6 | use App\Shared\Domain\Event\DomainEvent; |
| 7 | |
| 8 | /** |
| 9 | * @author Wilhelm Zwertvaegher |
| 10 | */ |
| 11 | class IdentityCompletedEvent extends DomainEvent |
| 12 | { |
| 13 | private const string TYPE = 'auth.identity.completed'; |
| 14 | |
| 15 | private readonly Identity $identity; |
| 16 | |
| 17 | /** |
| 18 | * @param Identity $identity |
| 19 | * @param array<string, string|int>|null $metadata |
| 20 | */ |
| 21 | public function __construct(Identity $identity, ?array $metadata = null) |
| 22 | { |
| 23 | parent::__construct(self::TYPE, $metadata); |
| 24 | $this->identity = $identity; |
| 25 | } |
| 26 | |
| 27 | public function getIdentity(): Identity |
| 28 | { |
| 29 | return $this->identity; |
| 30 | } |