| Total Complexity | 4 | 
| Total Lines | 31 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 8 | abstract class NullableRule implements BaseRuleInterface  | 
            ||
| 9 | { | 
            ||
| 10 | public const ERROR_NULL = 'null';  | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * @var bool  | 
            ||
| 14 | */  | 
            ||
| 15 | protected bool $isNullable = false;  | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 |      * {@inheritDoc} | 
            ||
| 19 | *  | 
            ||
| 20 | * @return static  | 
            ||
| 21 | */  | 
            ||
| 22 | public function nullable(): self  | 
            ||
| 23 |     { | 
            ||
| 24 | $this->isNullable = true;  | 
            ||
| 25 | return $this;  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 | /**  | 
            ||
| 29 |      * {@inheritDoc} | 
            ||
| 30 | */  | 
            ||
| 31 | public function validate($value): void  | 
            ||
| 39 | }  | 
            ||
| 40 | }  | 
            ||
| 42 |