| 1 | <?php |
||
| 10 | class AbstractResponse implements ResponseInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Array of errors. |
||
| 15 | * |
||
| 16 | * @var array |
||
| 17 | * |
||
| 18 | * @JMS\SerializedName("ERRORS") |
||
| 19 | * @JMS\Type("array<string, string>") |
||
| 20 | */ |
||
| 21 | protected $errors = array(); |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The status of the entity created / updated. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | * |
||
| 28 | * @JMS\SerializedName("STATUS") |
||
| 29 | * @JMS\Type("string") |
||
| 30 | */ |
||
| 31 | protected $status; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 3 | public function getErrors() |
|
| 37 | { |
||
| 38 | 3 | return $this->errors; |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 90 | public function hasErrors() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function getStatus() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * {@inheritdoc} |
||
| 59 | */ |
||
| 60 | 39 | public function setStatus($status) |
|
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritdoc} |
||
| 67 | */ |
||
| 68 | public function isStatusSuccess() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * {@inheritdoc} |
||
| 75 | */ |
||
| 76 | public function isStatusInvalid() |
||
| 80 | } |
||
| 81 |