| Total Complexity | 2 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | #[Attribute(Attribute::TARGET_PROPERTY)] |
||
| 9 | class IsInstanceOf extends AbstractValidation |
||
| 10 | { |
||
| 11 | public function __construct(private string $class, ?string $message = null) |
||
| 12 | { |
||
| 13 | parent::__construct($message); |
||
| 14 | } |
||
| 15 | |||
| 16 | protected function isValid($input, array $context = []): bool |
||
| 19 | } |
||
| 20 | } |
||
| 21 |