| 1 | <?php |
||
| 13 | class Product |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * id |
||
| 17 | * |
||
| 18 | * @var int |
||
| 19 | * @access private |
||
| 20 | * |
||
| 21 | * @Rest\Id |
||
| 22 | * @Rest\Attribute(name="id", type="integer") |
||
| 23 | */ |
||
| 24 | private $id; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * value |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | * @access private |
||
| 31 | * |
||
| 32 | * @Rest\Attribute(name="product_value", type="string") |
||
| 33 | */ |
||
| 34 | private $value; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * currency |
||
| 38 | * |
||
| 39 | * @var string |
||
| 40 | * @access private |
||
| 41 | * |
||
| 42 | * @Rest\Attribute(name="currency", type="string") |
||
| 43 | */ |
||
| 44 | private $currency; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Getter for id |
||
| 48 | * |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | public function getId() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Setter for id |
||
| 58 | * |
||
| 59 | * @param int $id |
||
| 60 | * @return Product |
||
| 61 | */ |
||
| 62 | public function setId($id) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Getter for value |
||
| 70 | * |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | public function getValue() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Setter for value |
||
| 80 | * |
||
| 81 | * @param string $value |
||
| 82 | * @return Product |
||
| 83 | */ |
||
| 84 | public function setValue($value) |
||
| 89 | |||
| 90 | /** |
||
| 91 | * Getter for currency |
||
| 92 | * |
||
| 93 | * @return string |
||
| 94 | */ |
||
| 95 | public function getCurrency() |
||
| 99 | |||
| 100 | /** |
||
| 101 | * Setter for currency |
||
| 102 | * |
||
| 103 | * @param string $currency |
||
| 104 | * @return Product |
||
| 105 | */ |
||
| 106 | public function setCurrency($currency) |
||
| 111 | } |
||
| 112 |