| 1 | <?php |
||
| 12 | final class MultipleError implements ResponseModelInterface |
||
| 13 | { |
||
| 14 | private $httpStatusCode; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var AbstractError[] |
||
| 18 | */ |
||
| 19 | private $errors; |
||
| 20 | |||
| 21 | 3 | public function __construct(int $httpStatusCode, array $errors) |
|
| 28 | |||
| 29 | 2 | public function addError(AbstractError $error): void |
|
| 33 | |||
| 34 | 1 | public function getHttpStatusCode(): int |
|
| 38 | |||
| 39 | 1 | public function getPayload(): array |
|
| 50 | } |
||
| 51 |