Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
20.00% |
1 / 5 |
|
20.00% |
1 / 5 |
|
20.00% |
1 / 5 |
|
20.00% |
1 / 5 |
CRAP | |
0.00% |
0 / 1 |
| ExternalSetElement | |
20.00% |
1 / 5 |
|
20.00% |
1 / 5 |
|
20.00% |
1 / 5 |
|
20.00% |
1 / 5 |
17.80 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getExternalId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getExternalSetId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getExternalPartId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getQuantity | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\CollectionManagement\Domain\Model\External; |
| 4 | |
| 5 | /** |
| 6 | * @author Wilhelm Zwertvaegher |
| 7 | * Representation of a Part of a BaseSet retrieved from an external source |
| 8 | */ |
| 9 | final readonly class ExternalSetElement |
| 10 | { |
| 11 | public function __construct( |
| 12 | private string $externalId, |
| 13 | private string $externalSetId, |
| 14 | private string $externalPartId, |
| 15 | private int $quantity |
| 16 | ) |
| 17 | {} |
| 18 | |
| 19 | public function getExternalId(): string |
| 20 | { |
| 21 | return $this->externalId; |
| 22 | } |
| 23 | |
| 24 | public function getExternalSetId(): string |
| 25 | { |
| 26 | return $this->externalSetId; |
| 27 | } |
| 28 | |
| 29 | public function getExternalPartId(): string |
| 30 | { |
| 31 | return $this->externalPartId; |
| 32 | } |
| 33 | |
| 34 | public function getQuantity(): int |
| 35 | { |
| 36 | return $this->quantity; |
| 37 | } |
| 38 | } |