public function getAllErrors($keys = true)
    {
        return ($keys == true) ? $this->errors : array_values($this->errors);
    }
public function getAllErrors($keys = true)
    {
        return ($keys == true) ? $this->errors : array_values($this->errors);
    }
public function getAllErrors ( $ keys = true ) { return ( $ keys == true ) ? $ this -> errors : array_values ( $ this -> errors ) ; }
Get all errors.

@return array
Get all errors .