| Total Complexity | 2 | 
| Total Lines | 22 | 
| Duplicated Lines | 0 % | 
| Coverage | 80% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 16 | #[Attribute(Attribute::TARGET_PROPERTY)]  | 
            ||
| 17 | final class Json implements RuleInterface  | 
            ||
| 18 | { | 
            ||
| 19 | use RuleNameTrait;  | 
            ||
| 20 | use ValidatorClassNameTrait;  | 
            ||
| 21 | |||
| 22 | public function __construct(  | 
            ||
| 23 | public string $message = 'The value is not JSON.',  | 
            ||
| 24 | public bool $skipOnEmpty = false,  | 
            ||
| 25 | public bool $skipOnError = false,  | 
            ||
| 26 | public ?Closure $when = null,  | 
            ||
| 27 |     ) { | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 | 1 | public function getOptions(): array  | 
            |
| 38 | ];  | 
            ||
| 39 | }  | 
            ||
| 41 |