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