Total Complexity | 7 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ExceptionResponse implements IResponseDataInterface, IResponseInterface |
||
12 | { |
||
13 | private bool $isSuccess; |
||
14 | private string $retMsg; |
||
15 | private \DateTime $time; |
||
16 | |||
17 | public function __construct(array $data) |
||
23 | } |
||
24 | |||
25 | public function isSuccess(): bool |
||
26 | { |
||
27 | return $this->isSuccess; |
||
28 | } |
||
29 | |||
30 | public function getReturnMessage(): string |
||
31 | { |
||
32 | return $this->retMsg; |
||
33 | } |
||
34 | |||
35 | public function getTime(): \DateTime |
||
36 | { |
||
37 | return $this->time; |
||
38 | } |
||
39 | |||
40 | public function getReturnCode(): int |
||
41 | { |
||
42 | return -1; |
||
43 | } |
||
44 | |||
45 | public function getExtendedInfo(): array |
||
48 | } |
||
49 | |||
50 | public function getResult() |
||
51 | { |
||
52 | return null; |
||
55 |