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