/** * checks a enum element * * @param mixed $value * @param mixed $schema * @param mixed $path * @param mixed $i */ protected function checkEnum($value, $schema = null, $path = null, $i = null) { $validator = new Enum($this->checkMode); $validator->check($value, $schema, $path, $i); $this->addErrors($validator->getErrors()); }