public function hasFailed()
    {
        if($this->failed == false || $this->passed == true)
        {
            $this->failed = true;
            $this->passed = false;
        }
    }
public function hasFailed()
    {
        if($this->failed == false || $this->passed == true)
        {
            $this->failed = true;
            $this->passed = false;
        }
    }
public function hasFailed ( ) { if ( $ this -> failed == false || $ this -> passed == true ) { $ this -> failed = true ; $ this -> passed = false ; } }
Set booleans if validator failed

@return void
Set booleans if validator failed