Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
| OrderLine | |
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
2.50 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\Fixtures\Entities; |
| 3 | |
| 4 | use Apie\Core\Entities\EntityInterface; |
| 5 | use Apie\Fixtures\Identifiers\OrderLineIdentifier; |
| 6 | |
| 7 | class OrderLine implements EntityInterface |
| 8 | { |
| 9 | public function __construct(private OrderLineIdentifier $id) |
| 10 | { |
| 11 | } |
| 12 | |
| 13 | public function getId(): OrderLineIdentifier |
| 14 | { |
| 15 | return $this->id; |
| 16 | } |
| 17 | } |