Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class CommandResponse |
||
8 | { |
||
9 | public const STATUS_OK = 'ok'; |
||
10 | public const STATUS_ERROR = 'error'; |
||
11 | public const STATUS_FAIL = 'fail'; |
||
12 | |||
13 | public function __construct( |
||
14 | private string $status, |
||
15 | private mixed $result, |
||
16 | private array $errors = [], |
||
17 | ) { |
||
18 | } |
||
19 | |||
20 | public function getStatus(): string |
||
21 | { |
||
22 | return $this->status; |
||
23 | } |
||
24 | |||
25 | public function getResult(): mixed |
||
26 | { |
||
27 | return $this->result; |
||
28 | } |
||
29 | |||
30 | public function getErrors(): array |
||
33 | } |
||
34 | } |
||
35 |