Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
95.65% |
22 / 23 |
|
95.45% |
21 / 22 |
CRAP | |
0.00% |
0 / 1 |
Order | |
95.65% |
22 / 23 |
|
95.45% |
21 / 22 |
22 | |
0.00% |
0 / 1 |
getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getUserId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getNumber | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getEmail | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getMethod | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getAddress | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getTotalProducts | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getTotalPrice | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getPlacedOn | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getPaymentStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setUserId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setNumber | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setEmail | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setMethod | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setAddress | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setTotalProducts | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setTotalPrice | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setPaymentStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setPlacedOn | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setId | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | namespace Models; |
3 | |
4 | class Order { |
5 | private $id; |
6 | private $userId; |
7 | private $name; |
8 | private $number; |
9 | private $email; |
10 | private $method; |
11 | private $address; |
12 | private $totalProducts; |
13 | private $totalPrice; |
14 | private $placedOn; |
15 | private $paymentStatus; |
16 | |
17 | // Getters |
18 | public function getId() { return $this->id; } |
19 | public function getUserId() { return $this->userId; } |
20 | public function getName() { return $this->name; } |
21 | public function getNumber() { return $this->number; } |
22 | public function getEmail() { return $this->email; } |
23 | public function getMethod() { return $this->method; } |
24 | public function getAddress() { return $this->address; } |
25 | public function getTotalProducts() { return $this->totalProducts; } |
26 | public function getTotalPrice() { return $this->totalPrice; } |
27 | public function getPlacedOn() { return $this->placedOn; } |
28 | public function getPaymentStatus() { return $this->paymentStatus; } |
29 | |
30 | // Setters |
31 | public function setUserId($userId) { $this->userId = $userId; } |
32 | public function setName($name) { $this->name = $name; } |
33 | public function setNumber($number) { $this->number = $number; } |
34 | public function setEmail($email) { $this->email = $email; } |
35 | public function setMethod($method) { $this->method = $method; } |
36 | public function setAddress($address) { $this->address = $address; } |
37 | public function setTotalProducts($totalProducts) { $this->totalProducts = $totalProducts; } |
38 | public function setTotalPrice($totalPrice) { $this->totalPrice = $totalPrice; } |
39 | public function setPaymentStatus($status) { $this->paymentStatus = $status; } |
40 | public function setPlacedOn($placedOn) { $this->placedOn = $placedOn; } |
41 | |
42 | public function setId($id) { |
43 | $this->id = $id; |
44 | return $this; |
45 | } |
46 | } |