public function setToken($token)
    {
        $this->token = $token;
        $this->username = '';
        $this->password = '';
        $this->accessToken = '';
        return $this;
    }
public function setToken($token)
    {
        $this->token = $token;
        $this->username = '';
        $this->password = '';
        $this->accessToken = '';
        return $this;
    }
public function setToken ( $ token ) { $ this -> token = $ token ; $ this -> username = '' ; $ this -> password = '' ; $ this -> accessToken = '' ; return $ this ; }
Set simple token for authentication

Username + password and access token will be cleared

@param string $token

@return PhonegapBuildApi
Set simple token for authentication