public function validate($input) { if ($this->compareIdentical) { return $this->validateIdentical($input); } return $this->validateEquals($input); }