| 1 | <?php |
||
| 13 | class ShippingOption extends BaseType |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | static protected $requiredParams = ['id', 'title', 'prices']; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | static protected $map = [ |
||
| 24 | 'id' => true, |
||
| 25 | 'title' => true, |
||
| 26 | 'prices' => ArrayOfLabeledPrice::class |
||
| 27 | ]; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Shipping option identifier |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $id; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Option title |
||
| 38 | * |
||
| 39 | * @var string |
||
| 40 | */ |
||
| 41 | protected $title; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * List of price portions |
||
| 45 | * |
||
| 46 | * @var array |
||
| 47 | */ |
||
| 48 | protected $prices; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @author MY |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getId() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @author MY |
||
| 61 | * @param string $id |
||
| 62 | */ |
||
| 63 | public function setId($id) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @author MY |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | public function getTitle() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @author MY |
||
| 79 | * @param string $title |
||
| 80 | */ |
||
| 81 | public function setTitle($title) |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @author MY |
||
| 88 | * @return array |
||
| 89 | */ |
||
| 90 | public function getPrices() |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @author MY |
||
| 97 | * @param array $prices |
||
| 98 | */ |
||
| 99 | public function setPrices($prices) |
||
| 103 | } |
||
| 104 |