src/WordpressClient.php
function setAuth($authConfig)
    {
        if ($authConfig === false || is_array($authConfig)) {
            $this->authConfig = $authConfig;
        } else {
            throw new \InvalidArgumentException(__METHOD__ . " only accept boolean 'false' or an array as parameter.");
        }
    }
function setAuth($authConfig)
    {
        if ($authConfig === false || is_array($authConfig)) {
            $this->authConfig = $authConfig;
        } else {
            throw new \InvalidArgumentException(__METHOD__ . " only accept boolean 'false' or an array as parameter.");
        }
    }
function setAuth ( $ authConfig ) { if ( $ authConfig === false || is_array ( $ authConfig ) ) { $ this -> authConfig = $ authConfig ; } else { throw new \ InvalidArgumentException ( __METHOD__ . " only accept boolean 'false' or an array as parameter." ) ; } }
Set authentication info

@param boolean|array $authConfig the configuation array
<ul>
<li><code>auth_user</code>: the username for server authentication</li>
<li><code>auth_pass</code>: the password for server authentication</li>
<li><code>auth_mode</code>: value for CURLOPT_HTTPAUTH option (default to
CURLAUTH_BASIC)</li>
</ul>

@throws \InvalidArgumentException
@see   curl_setopt
@since 2.2
Set authentication info