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 |
| ExternalElement | |
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 | |||
| 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 | |||
| getExternalPartId | |
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 | |||
| getExternalColorId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getColorName | |
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\External; |
| 4 | |
| 5 | final readonly class ExternalElement |
| 6 | { |
| 7 | public function __construct( |
| 8 | private string $externalId, |
| 9 | private string $legoId, |
| 10 | private string $externalPartId, |
| 11 | private string $imagePath, |
| 12 | private string $externalColorId, |
| 13 | private string $colorName |
| 14 | ) { |
| 15 | |
| 16 | } |
| 17 | |
| 18 | public function getExternalId(): string |
| 19 | { |
| 20 | return $this->externalId; |
| 21 | } |
| 22 | |
| 23 | public function getLegoId(): string |
| 24 | { |
| 25 | return $this->legoId; |
| 26 | } |
| 27 | |
| 28 | public function getExternalPartId(): string |
| 29 | { |
| 30 | return $this->externalPartId; |
| 31 | } |
| 32 | |
| 33 | public function getImagePath(): string |
| 34 | { |
| 35 | return $this->imagePath; |
| 36 | } |
| 37 | |
| 38 | public function getExternalColorId(): string |
| 39 | { |
| 40 | return $this->externalColorId; |
| 41 | } |
| 42 | |
| 43 | public function getColorName(): string |
| 44 | { |
| 45 | return $this->colorName; |
| 46 | } |
| 47 | } |