| 1 | <?php |
||
| 16 | class ApiError implements FromArrayInterface |
||
| 17 | { |
||
| 18 | /** @var string */ |
||
| 19 | private $message; |
||
| 20 | |||
| 21 | /** @var string */ |
||
| 22 | private $status; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $message |
||
| 26 | * @param string $status |
||
| 27 | */ |
||
| 28 | public function __construct( |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getMessage() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $message |
||
| 47 | * |
||
| 48 | * @return $this |
||
| 49 | */ |
||
| 50 | public function setMessage(string $message) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getStatus() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param string $status |
||
| 67 | * |
||
| 68 | * @return $this |
||
| 69 | */ |
||
| 70 | public function setStatus(string $status) |
||
| 76 | |||
| 77 | /** |
||
| 78 | * {@inheritdoc} |
||
| 79 | */ |
||
| 80 | public static function fromArray(array $data) |
||
| 87 | } |
||
| 88 |