Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
7 / 7 |
|
100.00% |
7 / 7 |
|
100.00% |
7 / 7 |
|
100.00% |
7 / 7 |
CRAP | |
100.00% |
1 / 1 |
| BaseSet | |
100.00% |
7 / 7 |
|
100.00% |
7 / 7 |
|
100.00% |
7 / 7 |
|
100.00% |
7 / 7 |
7 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getLegoId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getExternalId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getPartCount | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getImagePath | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getProductionYear | |
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; |
| 4 | |
| 5 | abstract readonly class BaseSet |
| 6 | { |
| 7 | public function __construct( |
| 8 | private string $externalId, |
| 9 | private string $legoId, |
| 10 | private string $name, |
| 11 | private int $partCount, |
| 12 | private string $imagePath, |
| 13 | private int $productionYear, |
| 14 | ) { |
| 15 | } |
| 16 | |
| 17 | public function getLegoId(): string |
| 18 | { |
| 19 | return $this->legoId; |
| 20 | } |
| 21 | |
| 22 | |
| 23 | public function getExternalId(): string |
| 24 | { |
| 25 | return $this->externalId; |
| 26 | } |
| 27 | |
| 28 | public function getName(): string |
| 29 | { |
| 30 | return $this->name; |
| 31 | } |
| 32 | |
| 33 | public function getPartCount(): int |
| 34 | { |
| 35 | return $this->partCount; |
| 36 | } |
| 37 | |
| 38 | public function getImagePath(): string |
| 39 | { |
| 40 | return $this->imagePath; |
| 41 | } |
| 42 | |
| 43 | public function getProductionYear(): int |
| 44 | { |
| 45 | return $this->productionYear; |
| 46 | } |
| 47 | } |
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.
| 7 | public function __construct( |
| 8 | private string $externalId, |
| 9 | private string $legoId, |
| 10 | private string $name, |
| 11 | private int $partCount, |
| 12 | private string $imagePath, |
| 13 | private int $productionYear, |
| 14 | ) { |
| 15 | } |
| 25 | return $this->externalId; |
| 26 | } |
| 40 | return $this->imagePath; |
| 41 | } |
| 19 | return $this->legoId; |
| 20 | } |
| 30 | return $this->name; |
| 31 | } |
| 35 | return $this->partCount; |
| 36 | } |
| 45 | return $this->productionYear; |
| 46 | } |