/** * Check whether field value is valid for this validator or not * * @return bool Validation status */ public function isValid() { $args = func_get_args(); return $args[0] == $this->equalToField->getValue(); }