protected function getAuth()
    {
        if (isset($this->auth['username']) && isset($this->auth['password'])) {
            return [$this->auth['username'], $this->auth['password']];
        }
    }
protected function getAuth()
    {
        if (isset($this->auth['username']) && isset($this->auth['password'])) {
            return [$this->auth['username'], $this->auth['password']];
        }
    }
protected function getAuth ( ) { if ( isset ( $ this -> auth [ 'username' ] ) && isset ( $ this -> auth [ 'password' ] ) ) { return [ $ this -> auth [ 'username' ] , $ this -> auth [ 'password' ] ] ; } }
Returns the auth array for requests.  If not set, will return null.

@return array|null
Returns the auth array for requests . If not set will return null .