| Total Complexity | 6 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Variant |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $id; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var Product |
||
| 14 | */ |
||
| 15 | protected $product; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | protected $price; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | public function getId(): string |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $id |
||
| 32 | */ |
||
| 33 | public function setId(string $id) |
||
| 34 | { |
||
| 35 | $this->id = $id; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return Product |
||
| 40 | */ |
||
| 41 | public function getProduct(): Product |
||
| 42 | { |
||
| 43 | return $this->product; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param Product $product |
||
| 48 | */ |
||
| 49 | public function setProduct(Product $product) |
||
| 50 | { |
||
| 51 | $this->product = $product; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return int |
||
| 56 | */ |
||
| 57 | public function getPrice(): int |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param int $price |
||
| 64 | */ |
||
| 65 | public function setPrice(int $price) |
||
| 68 | } |
||
| 69 | } |
||
| 70 |