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