| 1 | <?php |
||
| 13 | trait ProductVariantTrait |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @ORM\Column(name="base_price_unit", type="string", length=8, nullable=true) |
||
| 17 | * @param null|string |
||
| 18 | */ |
||
| 19 | protected $basePriceUnit; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @ORM\Column(name="base_price_value", type="integer", length=8, nullable=true) |
||
| 23 | * @param null|int |
||
| 24 | */ |
||
| 25 | protected $basePriceValue; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Product variant weight,volume,length unit name |
||
| 29 | * |
||
| 30 | * @param string|null $basePriceUnit |
||
| 31 | * |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | public function setBasePriceUnit(?string $basePriceUnit) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Product variant weight or volume unit name |
||
| 43 | * |
||
| 44 | * @return string|null |
||
| 45 | */ |
||
| 46 | public function getBasePriceUnit(): ?string |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Product variant weight or volume in defined "base_price_unit" units |
||
| 53 | * |
||
| 54 | * @param int|null $basePriceValue |
||
| 55 | * |
||
| 56 | * @return $this |
||
| 57 | */ |
||
| 58 | public function setBasePriceValue(?int $basePriceValue) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Product variant weight or volume in defined "base_price_unit" units |
||
| 67 | * |
||
| 68 | * @return int|null |
||
| 69 | */ |
||
| 70 | public function getBasePriceValue(): ?int |
||
| 74 | } |
||
| 75 |