| Total Complexity | 8 |
| Total Lines | 84 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ChannelDeposit implements ChannelDepositInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | private $id; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $price; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $channelCode; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var ProductVariantInterface|null |
||
| 29 | */ |
||
| 30 | private $productVariant; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function __toString(): string |
||
| 36 | { |
||
| 37 | return (string) $this->getPrice(); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function getId() |
||
| 44 | { |
||
| 45 | return $this->id; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | public function getPrice(): ?int |
||
| 52 | { |
||
| 53 | return $this->price; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param int $price |
||
| 58 | */ |
||
| 59 | public function setPrice(int $price): void |
||
| 60 | { |
||
| 61 | $this->price = $price; |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return ProductVariantInterface|null |
||
| 66 | */ |
||
| 67 | public function getProductVariant(): ?ProductVariantInterface |
||
| 68 | { |
||
| 69 | return $this->productVariant; |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param ProductVariantInterface|null $productVariants |
||
| 74 | */ |
||
| 75 | public function setProductVariant(?ProductVariantInterface $productVariants): void |
||
| 78 | } |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return string|null |
||
| 82 | */ |
||
| 83 | public function getChannelCode(): ?string |
||
| 86 | } |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @param string $channelCode |
||
| 90 | */ |
||
| 91 | public function setChannelCode(string $channelCode): void |
||
| 96 |