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 | } |