Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class ErrorCollection extends Collection |
||
9 | { |
||
10 | /** |
||
11 | * The HTTP status code applicable to this problem, expressed as a string value. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $statusCode; |
||
16 | |||
17 | /** |
||
18 | * Get the status code. |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | public function getStatusCode() |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Set the status code. |
||
29 | * |
||
30 | * @param string $statusCode |
||
31 | * |
||
32 | * @return self |
||
33 | */ |
||
34 | public function setStatusCode(string $statusCode) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Validate the content of items. All item should to be an instances of Error. |
||
43 | * |
||
44 | * @return self |
||
45 | * |
||
46 | * @throws \SMartins\Exceptions\JsonApi\CollectionInvalidContent |
||
47 | */ |
||
48 | public function validated() |
||
59 |