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 | } |
Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not
necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once.
Please also be aware that some branches may be implicit rather than explicit, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.
| 11 | public function __construct( |
| 12 | private string $externalId, |
| 13 | private string $externalSetId, |
| 14 | private string $externalPartId, |
| 15 | private int $quantity |
| 16 | ) |
| 17 | {} |
| 21 | return $this->externalId; |
| 22 | } |
| 31 | return $this->externalPartId; |
| 32 | } |
| 26 | return $this->externalSetId; |
| 27 | } |
| 36 | return $this->quantity; |
| 37 | } |