| Total Complexity | 5 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class AbstractResult implements Interfaces\Result |
||
| 10 | { |
||
| 11 | final public function isNotFound(): bool |
||
| 12 | { |
||
| 13 | return false; |
||
| 14 | } |
||
| 15 | |||
| 16 | final public function getErrors(): iterable |
||
| 17 | { |
||
| 18 | return []; |
||
| 19 | } |
||
| 20 | |||
| 21 | final public function hasErrors(): bool |
||
| 22 | { |
||
| 23 | return false; |
||
| 24 | } |
||
| 25 | |||
| 26 | final public static function notFound(): Interfaces\Result |
||
| 43 | } |
||
| 44 | }; |
||
| 45 | } |
||
| 46 | |||
| 47 | final public static function withErrors(\Throwable ...$errors): Interfaces\Result |
||
| 71 | } |
||
| 72 | }; |
||
| 73 | } |
||
| 74 | } |
||
| 75 |