1 | <?php |
||
12 | trait OfferTrait |
||
13 | { |
||
14 | use ThingTrait; |
||
15 | |||
16 | private $_availability; |
||
17 | |||
18 | private $_price; |
||
19 | |||
20 | /** |
||
21 | * Price Setter |
||
22 | * |
||
23 | * @param PriceValue $price |
||
24 | * @return static |
||
25 | * @since 1.2.2 |
||
26 | */ |
||
27 | public function setPrice(PriceValue $price) |
||
32 | |||
33 | /** |
||
34 | * Get Price |
||
35 | * |
||
36 | * @return mixed |
||
37 | * @since 1.2.2 |
||
38 | */ |
||
39 | public function getPrice() |
||
43 | |||
44 | private $_priceCurrency; |
||
45 | |||
46 | /** |
||
47 | * Price Currency Setter. |
||
48 | * |
||
49 | * @param CurrencyValue $currencyValue |
||
50 | * @return static |
||
51 | * @since 1.2.2 |
||
52 | */ |
||
53 | public function setPriceCurrency(CurrencyValue $currencyValue) |
||
58 | |||
59 | /** |
||
60 | * Get Price Currency |
||
61 | * |
||
62 | * @return string |
||
63 | * @since 1.2.2 |
||
64 | */ |
||
65 | public function getPriceCurrency() |
||
69 | } |
||
70 |