Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
66.67% |
2 / 3 |
|
66.67% |
2 / 3 |
CRAP | |
0.00% |
0 / 1 |
OrderLine | |
66.67% |
2 / 3 |
|
66.67% |
2 / 3 |
3.33 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getPrice | |
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\Core\ValueObjects\Price; |
6 | use Apie\Fixtures\Identifiers\OrderLineIdentifier; |
7 | |
8 | class OrderLine implements EntityInterface |
9 | { |
10 | public function __construct(private OrderLineIdentifier $id, private Price $price) |
11 | { |
12 | } |
13 | |
14 | public function getId(): OrderLineIdentifier |
15 | { |
16 | return $this->id; |
17 | } |
18 | |
19 | public function getPrice(): Price |
20 | { |
21 | return $this->price; |
22 | } |
23 | } |