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

Tokens will be cleared

@param string $username
@param string $password

@return PhonegapBuildApi
Set username and password for authentication