private function setAuthIfNotSet(IRequest $request)
    {
        // If the 'auth' parameter is not set in the request we try to get it from the Pushwoosh client
        if ($request->getAuth() === null) {
            // The 'auth' parameter is expected here
            if (!isset($this->auth)) {
                throw new PushwooshException('The \'auth\' parameter is not set !');

                // Use the 'auth' parameter defined in the Pushwoosh client
            } else {
                $request->setAuth($this->auth);
            }
        }
    }
private function setAuthIfNotSet(IRequest $request)
    {
        // If the 'auth' parameter is not set in the request we try to get it from the Pushwoosh client
        if ($request->getAuth() === null) {
            // The 'auth' parameter is expected here
            if (!isset($this->auth)) {
                throw new PushwooshException('The \'auth\' parameter is not set !');

                // Use the 'auth' parameter defined in the Pushwoosh client
            } else {
                $request->setAuth($this->auth);
            }
        }
    }
private function setAuthIfNotSet ( IRequest $ request ) { // If the 'auth' parameter is not set in the request we try to get it from the Pushwoosh client if ( $ request -> getAuth ( ) === null ) { // The 'auth' parameter is expected here if ( ! isset ( $ this -> auth ) ) { throw new PushwooshException ( 'The \'auth\' parameter is not set !' ) ; // Use the 'auth' parameter defined in the Pushwoosh client } else { $ request -> setAuth ( $ this -> auth ) ; } } }
Function used to check if the `auth` parameter is set on a Pushwoosh request and if no try to set it from the
Pushwoosh client `auth` parameter.

@param \Gomoob\Pushwoosh\Model\IRequest $request The Pushwoosh request to update.
Function used to check if the auth parameter is set on a Pushwoosh request and if no try to set it from the Pushwoosh client auth parameter .