Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
CRAP | |
100.00% |
1 / 1 |
| UserSet | |
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
4 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getLocalSet | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getUserId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\CollectionManagement\Domain\Model\Local; |
| 4 | |
| 5 | use App\Shared\Domain\Model\EntityId; |
| 6 | |
| 7 | /** |
| 8 | * A local user's set which consists of an id and a local set |
| 9 | * TODO : add meaningful information, such as status (OWNED, WANTED...), status last update, rating... |
| 10 | * |
| 11 | * @author Wilhelm Zwertvaegher |
| 12 | */ |
| 13 | readonly class UserSet |
| 14 | { |
| 15 | public function __construct( |
| 16 | private EntityId $id, |
| 17 | private EntityId $userId, |
| 18 | private Set $localSet |
| 19 | ) { |
| 20 | } |
| 21 | |
| 22 | public function getLocalSet(): Set |
| 23 | { |
| 24 | return $this->localSet; |
| 25 | } |
| 26 | |
| 27 | public function getId(): EntityId |
| 28 | { |
| 29 | return $this->id; |
| 30 | } |
| 31 | |
| 32 | public function getUserId(): EntityId |
| 33 | { |
| 34 | return $this->userId; |
| 35 | } |
| 36 | |
| 37 | } |
Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not
necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once.
Please also be aware that some branches may be implicit rather than explicit, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.
| 15 | public function __construct( |
| 16 | private EntityId $id, |
| 17 | private EntityId $userId, |
| 18 | private Set $localSet |
| 19 | ) { |
| 20 | } |
| 29 | return $this->id; |
| 30 | } |
| 24 | return $this->localSet; |
| 25 | } |
| 34 | return $this->userId; |
| 35 | } |
| 3 | namespace App\CollectionManagement\Domain\Model\Local; |
| 4 | |
| 5 | use App\Shared\Domain\Model\EntityId; |
| 6 | |
| 7 | /** |
| 8 | * A local user's set which consists of an id and a local set |
| 9 | * TODO : add meaningful information, such as status (OWNED, WANTED...), status last update, rating... |
| 10 | * |
| 11 | * @author Wilhelm Zwertvaegher |
| 12 | */ |
| 13 | readonly class UserSet |
| 14 | { |
| 15 | public function __construct( |
| 16 | private EntityId $id, |
| 17 | private EntityId $userId, |
| 18 | private Set $localSet |
| 19 | ) { |
| 20 | } |
| 21 | |
| 22 | public function getLocalSet(): Set |
| 23 | { |
| 24 | return $this->localSet; |
| 25 | } |
| 26 | |
| 27 | public function getId(): EntityId |
| 28 | { |
| 29 | return $this->id; |
| 30 | } |
| 31 | |
| 32 | public function getUserId(): EntityId |
| 33 | { |
| 34 | return $this->userId; |
| 35 | } |
| 36 |