check() public method

{@inheritDoc}
public check ( $element, $schema = null, JsonSchema\Entity\JsonPointer $path = null, $i = null )
$path JsonSchema\Entity\JsonPointer
Beispiel #1
0
 /**
  * Checks a string element
  *
  * @param mixed $value
  * @param mixed $schema
  * @param mixed $path
  * @param mixed $i
  */
 protected function checkString($value, $schema = null, $path = null, $i = null)
 {
     $validator = new StringConstraint($this->checkMode, $this->uriRetriever, $this->uriResolver, $this->schemaId);
     $validator->check($value, $schema, $path, $i);
     $this->addErrors($validator->getErrors());
 }