| Total Complexity | 8 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ChannelDeposit implements ChannelDepositInterface |
||
| 11 | { |
||
| 12 | /** @var mixed */ |
||
| 13 | private $id; |
||
| 14 | |||
| 15 | /** @var int|null */ |
||
| 16 | private $price; |
||
| 17 | |||
| 18 | /** @var string|null */ |
||
| 19 | private $channelCode; |
||
| 20 | |||
| 21 | /** @var ProductVariantInterface|null */ |
||
| 22 | private $productVariant; |
||
| 23 | |||
| 24 | public function __toString(): string |
||
| 25 | { |
||
| 26 | return (string) $this->getPrice(); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | public function getId() |
||
| 33 | { |
||
| 34 | return $this->id; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getPrice(): ?int |
||
| 38 | { |
||
| 39 | return $this->price; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function setPrice(?int $price): void |
||
| 43 | { |
||
| 44 | $this->price = $price; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getProductVariant(): ?ProductVariantInterface |
||
| 48 | { |
||
| 49 | return $this->productVariant; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function setProductVariant(?ProductVariantInterface $productVariants): void |
||
| 55 | } |
||
| 56 | |||
| 57 | public function getChannelCode(): ?string |
||
| 60 | } |
||
| 61 | |||
| 62 | public function setChannelCode(?string $channelCode): void |
||
| 63 | { |
||
| 64 | $this->channelCode = $channelCode; |
||
| 65 | } |
||
| 66 | } |
||
| 67 |