Locker\Request::getAuth PHP Method

getAuth() private method

Gets the authentication details from the stored/cached params.
private getAuth ( ) : AssocArray
return AssocArray Basic auth details.
    private function getAuth()
    {
        // If the basic auth details are set, decode and return them.
        if ($this->hasParam(self::authParam)) {
            $auth = $this->getSplitAuth();
            if (count($auth) === 2) {
                return $this->getDecodedAuth($auth[1]);
            }
        }
        // If the basic auth details are not set return a null user and password.
        return $this->getNullAuth();
    }