Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
1 / 1 |
| BasePart | |
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
1 / 1 |
| __construct | |
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 | |||
| getLegoId | |
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 | |||
| getImagePath | |
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 | /** |
| 6 | * @author Wilhelm Zwertvaegher |
| 7 | * A representation of an external Part retrieved from an external source |
| 8 | */ |
| 9 | abstract readonly class BasePart |
| 10 | { |
| 11 | public function __construct( |
| 12 | private string $externalId, |
| 13 | private string $legoId, |
| 14 | private string $name, |
| 15 | private string $imagePath |
| 16 | ) { |
| 17 | } |
| 18 | |
| 19 | public function getExternalId(): string |
| 20 | { |
| 21 | return $this->externalId; |
| 22 | } |
| 23 | |
| 24 | public function getLegoId(): string |
| 25 | { |
| 26 | return $this->legoId; |
| 27 | } |
| 28 | |
| 29 | public function getName(): string |
| 30 | { |
| 31 | return $this->name; |
| 32 | } |
| 33 | |
| 34 | public function getImagePath(): string |
| 35 | { |
| 36 | return $this->imagePath; |
| 37 | } |
| 38 | } |