| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class Validator |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param stdClass|null $schema The schema to check against the given data. |
||
| 14 | * @param mixed $data The data to validate (MUST be decoded JSON data). |
||
| 15 | * |
||
| 16 | * @return bool Whether $data conforms to $schema or not |
||
| 17 | */ |
||
| 18 | public static function validate(stdClass $schema, $data): bool |
||
| 27 |