Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
66.67% covered (warning)
66.67%
2 / 3
66.67% covered (warning)
66.67%
2 / 3
66.67% covered (warning)
66.67%
2 / 3
66.67% covered (warning)
66.67%
2 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
AddUserSetCommand
66.67% covered (warning)
66.67%
2 / 3
66.67% covered (warning)
66.67%
2 / 3
66.67% covered (warning)
66.67%
2 / 3
66.67% covered (warning)
66.67%
2 / 3
3.33
0.00% covered (danger)
0.00%
0 / 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
 getExternalSetId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getIdentityId
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\CollectionManagement\Application\Command;
4
5use App\Shared\Domain\Model\EntityId;
6
7final readonly class AddUserSetCommand
8{
9    public function __construct(
10        private string $externalSetId,
11        private EntityId $identityId
12    ) {
13    }
14
15    public function getExternalSetId(): string
16    {
17        return $this->externalSetId;
18    }
19
20    public function getIdentityId(): EntityId
21    {
22        return $this->identityId;
23    }
24}

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.

AddUserSetCommand->__construct
9    public function __construct(
10        private string $externalSetId,
11        private EntityId $identityId
12    ) {
13    }
AddUserSetCommand->getExternalSetId
17        return $this->externalSetId;
18    }
AddUserSetCommand->getIdentityId
22        return $this->identityId;
23    }
{main}
3namespace App\CollectionManagement\Application\Command;
4
5use App\Shared\Domain\Model\EntityId;
6
7final readonly class AddUserSetCommand
8{
9    public function __construct(
10        private string $externalSetId,
11        private EntityId $identityId
12    ) {
13    }
14
15    public function getExternalSetId(): string
16    {
17        return $this->externalSetId;
18    }
19
20    public function getIdentityId(): EntityId
21    {
22        return $this->identityId;
23    }