| Total Lines | 24 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | final public static function withErrors(\Throwable ...$errors): Interfaces\Result |
||
| 48 | { |
||
| 49 | return new class (...$errors) implements Interfaces\Result |
||
| 50 | { |
||
| 51 | private array $errors = []; |
||
| 52 | |||
| 53 | public function __construct(\Throwable ...$errors) |
||
| 54 | { |
||
| 55 | $this->errors = $errors; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function isNotFound(): bool |
||
| 59 | { |
||
| 60 | return false; |
||
| 61 | } |
||
| 62 | |||
| 63 | public function getErrors(): iterable |
||
| 64 | { |
||
| 65 | return $this->errors; |
||
| 66 | } |
||
| 67 | |||
| 68 | public function hasErrors(): bool |
||
| 69 | { |
||
| 70 | return true; |
||
| 71 | } |
||
| 75 |