parser = $parser; } /** * @inheritDoc */ public function validate(ValidationContext $context): ?ValidationError { return $this->schema()->validate($context); } /** * @return Schema */ public function schema(): Schema { if ($this->schema === null) { $this->schema = $this->parser->parseSchema($this->info); } return $this->schema; } }