| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | class Error |
||
| 5 | { |
||
| 6 | private $code; |
||
| 7 | private $message; |
||
| 8 | private $errors; |
||
| 9 | |||
| 10 | 2 | public function __construct(int $code, string $message, \Phrest\API\ErrorEntry ...$errorEntries) |
|
| 11 | { |
||
| 12 | 2 | $this->code = $code; |
|
| 13 | 2 | $this->message = $message; |
|
| 14 | 2 | $this->errors = $errorEntries; |
|
| 15 | 2 | } |
|
| 16 | |||
| 17 | 2 | public function code() : int { |
|
| 18 | 2 | return $this->code; |
|
| 19 | } |
||
| 20 | |||
| 21 | 2 | public function message() : string { |
|
| 22 | 2 | return $this->message; |
|
| 23 | } |
||
| 24 | |||
| 25 | 2 | public function errors() : array { |
|
| 27 | } |
||
| 28 | } |