| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait BeforeValidationTrait |
||
| 11 | { |
||
| 12 | 41 | public function shouldSkipOnEmpty(): bool |
|
| 15 | } |
||
| 16 | |||
| 17 | 38 | public function shouldSkipOnError(): bool |
|
| 18 | { |
||
| 19 | 38 | return $this->skipOnError; |
|
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @psalm-return Closure(mixed, ValidationContext):bool|null |
||
| 24 | * |
||
| 25 | * @return Closure|null |
||
| 26 | */ |
||
| 27 | 37 | public function getWhen(): ?Closure |
|
| 30 | } |
||
| 31 | } |
||
| 32 |