Total Complexity | 6 |
Total Lines | 100 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class Product |
||
17 | { |
||
18 | /** |
||
19 | * id |
||
20 | * |
||
21 | * @var int |
||
22 | * |
||
23 | * @Rest\Id |
||
24 | * @Rest\Attribute(name="id", type="integer") |
||
25 | */ |
||
26 | private $id; |
||
27 | |||
28 | /** |
||
29 | * value |
||
30 | * |
||
31 | * @var string |
||
32 | * |
||
33 | * @Rest\Attribute(name="product_value", type="string") |
||
34 | */ |
||
35 | private $value; |
||
36 | |||
37 | /** |
||
38 | * currency |
||
39 | * |
||
40 | * @var string |
||
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() |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * Setter for id |
||
58 | * |
||
59 | * @param int $id |
||
60 | * |
||
61 | * @return Product |
||
62 | */ |
||
63 | public function setId($id) |
||
64 | { |
||
65 | $this->id = $id; |
||
66 | |||
67 | return $this; |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * Getter for value |
||
72 | * |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getValue() |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * Setter for value |
||
82 | * |
||
83 | * @param string $value |
||
84 | * |
||
85 | * @return Product |
||
86 | */ |
||
87 | public function setValue($value) |
||
92 | } |
||
93 | |||
94 | /** |
||
95 | * Getter for currency |
||
96 | * |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getCurrency() |
||
102 | } |
||
103 | |||
104 | /** |
||
105 | * Setter for currency |
||
106 | * |
||
107 | * @param string $currency |
||
108 | * |
||
109 | * @return Product |
||
110 | */ |
||
111 | public function setCurrency($currency) |
||
118 |