1 | <?php |
||
10 | class Feature |
||
11 | { |
||
12 | /** |
||
13 | * The code / title of the feature. |
||
14 | * |
||
15 | * @var string |
||
16 | * |
||
17 | * @JMS\Type("string") |
||
18 | * @JMS\SerializedName("CODE") |
||
19 | */ |
||
20 | protected $code; |
||
21 | |||
22 | /** |
||
23 | * Quantity. |
||
24 | * |
||
25 | * @var integer |
||
26 | * |
||
27 | * @JMS\Type("integer") |
||
28 | * @JMS\SerializedName("QUANTITY") |
||
29 | */ |
||
30 | protected $quantity; |
||
31 | |||
32 | /** |
||
33 | * The value of the feature. |
||
34 | * |
||
35 | * @var string |
||
36 | * |
||
37 | * @JMS\Type("string") |
||
38 | * @JMS\SerializedName("VALUE") |
||
39 | */ |
||
40 | protected $value; |
||
41 | |||
42 | /** |
||
43 | * Constructor. |
||
44 | * |
||
45 | * @param string $code The code. |
||
46 | * @param integer $quantity The quantity. |
||
47 | * @param string $value The value. |
||
48 | */ |
||
49 | 6 | public function __construct($code, $quantity, $value) |
|
55 | |||
56 | /** |
||
57 | * Get the code. |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getCode() |
||
65 | |||
66 | /** |
||
67 | * Set the code. |
||
68 | * |
||
69 | * @param string $code The code. |
||
70 | * @return Feature |
||
71 | */ |
||
72 | 6 | public function setCode($code) |
|
78 | |||
79 | /** |
||
80 | * Get the quantity. |
||
81 | * |
||
82 | * @return integer |
||
83 | */ |
||
84 | public function getQuantity() |
||
88 | |||
89 | /** |
||
90 | * Set the quantity. |
||
91 | * |
||
92 | * @param integer $quantity The quantity. |
||
93 | * @return Feature |
||
94 | */ |
||
95 | 6 | public function setQuantity($quantity) |
|
104 | |||
105 | /** |
||
106 | * Get the value. |
||
107 | * |
||
108 | * @return string |
||
109 | */ |
||
110 | public function getValue() |
||
114 | |||
115 | /** |
||
116 | * Set the value. |
||
117 | * |
||
118 | * @param string $value The value. |
||
119 | * @return Feature |
||
120 | */ |
||
121 | 6 | public function setValue($value) |
|
127 | } |
||
128 |