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