public function getAuth($errorOnNull = false)
    {
        if ($errorOnNull && !$this->auth) {
            $msg = 'No Auth object provided.  (HINT: Set your Auth data using '
                 . '"$API->setAuth(Auth $auth)" or $API\' constructor.  '
                 . 'See https://TODO for details.';
            throw new ApiException($msg);
        }

        return $this->auth;
    }
public function getAuth($errorOnNull = false)
    {
        if ($errorOnNull && !$this->auth) {
            $msg = 'No Auth object provided.  (HINT: Set your Auth data using '
                 . '"$API->setAuth(Auth $auth)" or $API\' constructor.  '
                 . 'See https://TODO for details.';
            throw new ApiException($msg);
        }

        return $this->auth;
    }
public function getAuth ( $ errorOnNull = false ) { if ( $ errorOnNull && ! $ this -> auth ) { $ msg = 'No Auth object provided.  (HINT: Set your Auth data using ' . '"$API->setAuth(Auth $auth)" or $API\' constructor.  ' . 'See https://TODO for details.' ; throw new ApiException ( $ msg ) ; } return $ this -> auth ; }
Get the authentication object.

@param string $errorOnNull If true, throw an exception if auth null.

@return MyAllocator\phpsdk\src\Object\Auth API Authentication object.

@throws MyAllocator\phpsdk\src\Exception\ApiException
Get the authentication object .