/**
  * @param int $checkMode
  * @param UriRetriever $uriRetriever
  * @param Factory $factory
  * @param Callable $callable
  */
 public function __construct($checkMode = self::CHECK_MODE_NORMAL, UriRetriever $uriRetriever = null, Factory $factory = null, $callable)
 {
     $this->callable = $callable;
     parent::__construct($checkMode, $uriRetriever, $factory);
 }
Example #2
0
 /**
  * @param mixed $value
  * @param object $schema
  * @param string|null $path
  *
  * @return array
  */
 public function validate($value, $schema, $path = null)
 {
     $this->validator->check($value, $schema, $path);
     return $this->validator->getErrors();
 }