Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| Set | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
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 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\CollectionManagement\Domain\Model\Local; |
| 4 | |
| 5 | use App\CollectionManagement\Domain\Model\BaseSet; |
| 6 | use App\Shared\Domain\Model\EntityId; |
| 7 | |
| 8 | /** |
| 9 | * @author Wilhelm Zwertvaegher |
| 10 | * A BaseSet that exists locally (i.e. is saved locally) |
| 11 | */ |
| 12 | |
| 13 | final readonly class Set extends BaseSet |
| 14 | { |
| 15 | /** |
| 16 | * @param EntityId $id |
| 17 | * @param string $externalId |
| 18 | * @param string $legoId |
| 19 | * @param string $name |
| 20 | * @param int $partCount |
| 21 | * @param string $imagePath |
| 22 | * @param int $productionYear |
| 23 | */ |
| 24 | public function __construct( |
| 25 | private EntityId $id, |
| 26 | string $externalId, |
| 27 | string $legoId, |
| 28 | string $name, |
| 29 | int $partCount, |
| 30 | string $imagePath, |
| 31 | int $productionYear, |
| 32 | ) { |
| 33 | parent::__construct($externalId, $legoId, $name, $partCount, $imagePath, $productionYear); |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * @return EntityId |
| 38 | */ |
| 39 | public function getId(): EntityId |
| 40 | { |
| 41 | return $this->id; |
| 42 | } |
| 43 | } |
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.
| 24 | public function __construct( |
| 25 | private EntityId $id, |
| 26 | string $externalId, |
| 27 | string $legoId, |
| 28 | string $name, |
| 29 | int $partCount, |
| 30 | string $imagePath, |
| 31 | int $productionYear, |
| 32 | ) { |
| 33 | parent::__construct($externalId, $legoId, $name, $partCount, $imagePath, $productionYear); |
| 34 | } |
| 41 | return $this->id; |
| 42 | } |
| 3 | namespace App\CollectionManagement\Domain\Model\Local; |
| 4 | |
| 5 | use App\CollectionManagement\Domain\Model\BaseSet; |
| 6 | use App\Shared\Domain\Model\EntityId; |
| 7 | |
| 8 | /** |
| 9 | * @author Wilhelm Zwertvaegher |
| 10 | * A BaseSet that exists locally (i.e. is saved locally) |
| 11 | */ |
| 12 | |
| 13 | final readonly class Set extends BaseSet |
| 14 | { |
| 15 | /** |
| 16 | * @param EntityId $id |
| 17 | * @param string $externalId |
| 18 | * @param string $legoId |
| 19 | * @param string $name |
| 20 | * @param int $partCount |
| 21 | * @param string $imagePath |
| 22 | * @param int $productionYear |
| 23 | */ |
| 24 | public function __construct( |
| 25 | private EntityId $id, |
| 26 | string $externalId, |
| 27 | string $legoId, |
| 28 | string $name, |
| 29 | int $partCount, |
| 30 | string $imagePath, |
| 31 | int $productionYear, |
| 32 | ) { |
| 33 | parent::__construct($externalId, $legoId, $name, $partCount, $imagePath, $productionYear); |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * @return EntityId |
| 38 | */ |
| 39 | public function getId(): EntityId |
| 40 | { |
| 41 | return $this->id; |
| 42 | } |