public function setCredentials($credentials)
    {
        if (!$credentials instanceof Credentials) {
            $credentials = new Credentials($credentials);
        }

        $this->credentials = $credentials;
        $this->authToken = $this->login();
    }
public function setCredentials($credentials)
    {
        if (!$credentials instanceof Credentials) {
            $credentials = new Credentials($credentials);
        }

        $this->credentials = $credentials;
        $this->authToken = $this->login();
    }
public function setCredentials ( $ credentials ) { if ( ! $ credentials instanceof Credentials ) { $ credentials = new Credentials ( $ credentials ) ; } $ this -> credentials = $ credentials ; $ this -> authToken = $ this -> login ( ) ; }
Assign the passed Credentials object to the ProxmoxVE.

@param object $credentials A custom object holding credentials or a
Credentials object to assign.

@throws \ProxmoxVE\Exception\AuthenticationException If can not login.
Assign the passed Credentials object to the ProxmoxVE .