Total Complexity | 8 |
Total Lines | 101 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Order |
||
11 | { |
||
12 | private $id; |
||
13 | private $total; |
||
14 | private $currency; |
||
15 | private $status; |
||
16 | |||
17 | /** |
||
18 | * Getter for id |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | public function getId() |
||
23 | { |
||
24 | return $this->id; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Setter for id |
||
29 | * |
||
30 | * @param string $id |
||
31 | * |
||
32 | * @return Order |
||
33 | */ |
||
34 | public function setId($id) |
||
35 | { |
||
36 | $this->id = $id; |
||
37 | |||
38 | return $this; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Getter for total |
||
43 | * |
||
44 | * @return float |
||
45 | */ |
||
46 | public function getTotal() |
||
47 | { |
||
48 | return $this->total; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * Setter for total |
||
53 | * |
||
54 | * @param float $total |
||
55 | * |
||
56 | * @return Order |
||
57 | */ |
||
58 | public function setTotal($total) |
||
59 | { |
||
60 | $this->total = $total; |
||
61 | |||
62 | return $this; |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * Getter for currency |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | public function getCurrency() |
||
71 | { |
||
72 | return $this->currency; |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * Setter for currency |
||
77 | * |
||
78 | * @param string $currency |
||
79 | * |
||
80 | * @return Order |
||
81 | */ |
||
82 | public function setCurrency($currency) |
||
83 | { |
||
84 | $this->currency = $currency; |
||
85 | |||
86 | return $this; |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * Getter for status |
||
91 | * |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getStatus() |
||
97 | } |
||
98 | |||
99 | /** |
||
100 | * Setter for status |
||
101 | * |
||
102 | * @param string $status |
||
103 | * |
||
104 | * @return Order |
||
105 | */ |
||
106 | public function setStatus($status) |
||
111 | } |
||
112 | } |
||
113 |