| 1 | <?php |
||
| 13 | class LabeledPrice extends BaseType |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | static protected $requiredParams = ['label', 'amount']; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | static protected $map = [ |
||
| 24 | 'label' => true, |
||
| 25 | 'amount' => true |
||
| 26 | ]; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Portion label |
||
| 30 | * |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | protected $label; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Price of the product in the smallest units of the currency (integer, not float/double). |
||
| 37 | * |
||
| 38 | * @var int |
||
| 39 | */ |
||
| 40 | protected $amount; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getLabel() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $label |
||
| 52 | */ |
||
| 53 | public function setLabel($label) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return int |
||
| 60 | */ |
||
| 61 | public function getAmount() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @param int $amount |
||
| 68 | */ |
||
| 69 | public function setAmount($amount) |
||
| 73 | } |
||
| 74 |