Total Complexity | 2 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
12 | final class NotRequired implements Validation |
||
13 | { |
||
14 | private static ?self $instance = null; |
||
15 | |||
16 | public static function instance(): self |
||
17 | { |
||
18 | return self::$instance ?? self::$instance = new self; |
||
19 | } |
||
20 | |||
21 | public function validate(mixed $input, array $context = []): Result |
||
24 | } |
||
25 | } |
||
26 |