public function validate($value, $field = null, $allFields = null) { $values = $this->getParameter(); return in_array($value, $values, $this->strict); }