public function setAuth($user, $pass)
    {
        $this->user = (string) $user;
        $this->pass = (string) $pass;

        return $this->hasAuth();
    }
public function setAuth($user, $pass)
    {
        $this->user = (string) $user;
        $this->pass = (string) $pass;

        return $this->hasAuth();
    }
public function setAuth ( $ user , $ pass ) { $ this -> user = ( string ) $ user ; $ this -> pass = ( string ) $ pass ; return $ this -> hasAuth ( ) ; }
Set auth data for API.

@param string $user
@param string $pass

@return bool
Set auth data for API .