| 1 | <?php declare(strict_types=1); |
||
| 6 | abstract class Response implements ResponseInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var array |
||
| 10 | */ |
||
| 11 | protected $data; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | protected $status; |
||
| 17 | |||
| 18 | 2 | public function __construct(array $data) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | 2 | public function isSuccessful(): bool |
|
| 37 | |||
| 38 | 1 | public function getError(): string |
|
| 42 | } |
||
| 43 |