| Total Complexity | 10 |
| Total Lines | 86 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class OrderDetails extends AbstractEntity |
||
| 6 | { |
||
| 7 | protected string $error_code; |
||
| 8 | protected string $error_details; |
||
| 9 | protected string $error_string; |
||
| 10 | protected Order $order; |
||
| 11 | protected string $status; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | public function getErrorCode(): string |
||
| 17 | { |
||
| 18 | return $this->error_code; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $error_code |
||
| 23 | */ |
||
| 24 | public function setErrorCode(string $error_code): void |
||
| 25 | { |
||
| 26 | $this->error_code = $error_code; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getErrorDetails(): string |
||
| 33 | { |
||
| 34 | return $this->error_details; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $error_details |
||
| 39 | */ |
||
| 40 | public function setErrorDetails(string $error_details): void |
||
| 41 | { |
||
| 42 | $this->error_details = $error_details; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getErrorString(): string |
||
| 49 | { |
||
| 50 | return $this->error_string; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param string $error_string |
||
| 55 | */ |
||
| 56 | public function setErrorString(string $error_string): void |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return Order |
||
| 63 | */ |
||
| 64 | public function getOrder(): Order |
||
| 65 | { |
||
| 66 | return $this->order; |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @param array $order |
||
| 71 | */ |
||
| 72 | public function setOrder(array $order): void |
||
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return string |
||
| 79 | */ |
||
| 80 | public function getStatus(): string |
||
| 81 | { |
||
| 82 | return $this->status; |
||
| 83 | } |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @param string $status |
||
| 87 | */ |
||
| 88 | public function setStatus(string $status): void |
||
| 91 | } |
||
| 92 | } |
||
| 93 |