_acceptedValues = $acceptedValues; } // // Public methods // /** * Value is valid if it is empty and optional or is in the set of accepted values. * * @see FormValidator::isValid() * * @return bool */ public function isValid() { return $this->isEmptyAndOptional() || in_array($this->getFieldValue(), $this->_acceptedValues); } } if (!PKP_STRICT_MODE) { class_alias('\PKP\form\validation\FormValidatorInSet', '\FormValidatorInSet'); }