| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class Failure extends Result |
||
| 24 | { |
||
| 25 | public function __construct(Error ...$errors) |
||
| 26 | { |
||
| 27 | parent::__construct(false, ...$errors); |
||
| 28 | } |
||
| 29 | /** |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | public function getErrors(): array |
||
| 33 | { |
||
| 34 | return $this->errors; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getFirstError() : Error |
||
| 40 | |||
| 41 | } |
||
| 42 | } |