| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 62.5% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class ItemDetail |
||
| 8 | { |
||
| 9 | public function __construct( |
||
| 10 | private string $productId, |
||
| 11 | private Price $price, |
||
| 12 | private int $amount |
||
| 13 | ) { |
||
| 14 | } |
||
| 15 | 17 | ||
| 16 | public function getProductId(): string |
||
| 17 | 17 | { |
|
| 18 | 17 | return $this->productId; |
|
| 19 | 17 | } |
|
| 20 | 17 | ||
| 21 | public function getAmount(): int |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getPrice(): Price |
||
| 29 | } |
||
| 30 | } |
||
| 31 |