Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class ExceptionResponse implements IResponseDataInterface |
||
11 | { |
||
12 | private bool $isSuccess; |
||
13 | private string $retMsg; |
||
14 | private \DateTime $time; |
||
15 | |||
16 | public function __construct(array $data) |
||
17 | { |
||
18 | $this->isSuccess = BoolHelper::assign($data['success']); |
||
19 | $this->retMsg = StringHelper::assign($data['ret_msg']); |
||
20 | $this->time = (new \DateTime()); |
||
21 | $this->result = new EntityCollection(); |
||
|
|||
22 | } |
||
23 | |||
24 | public function isSuccess(): bool |
||
25 | { |
||
26 | return $this->isSuccess; |
||
27 | } |
||
28 | |||
29 | public function getReturnMessage(): string |
||
32 | } |
||
33 | |||
34 | public function getTime(): \DateTime |
||
39 |