| 1 | <?php |
||
| 7 | class AbstractResponse |
||
| 8 | { |
||
| 9 | /** @var array|null */ |
||
| 10 | protected $data; |
||
| 11 | /** @var array */ |
||
| 12 | protected $errors; |
||
| 13 | /** @var array */ |
||
| 14 | protected $warnings; |
||
| 15 | |||
| 16 | public function __construct(array $payload) |
||
| 22 | |||
| 23 | public function hasErrors(): bool |
||
| 27 | |||
| 28 | public function getErrors(): array |
||
| 32 | |||
| 33 | public function hasWarnings(): bool |
||
| 37 | |||
| 38 | public function getWarnings(): array |
||
| 42 | } |
||
| 43 |