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