private function setApplicationIfNotSet(IRequest $request)
    {
        // If the 'application' attribute is not set in the request we try to get a default one from the Pushwoosh
        // client
        if ($request->getApplication() === null) {
            // The 'application' must be set
            if (!isset($this->application)) {
                throw new PushwooshException('The  \'application\' property is not set !');
            }

            $request->setApplication($this->application);
        }
    }
private function setApplicationIfNotSet(IRequest $request)
    {
        // If the 'application' attribute is not set in the request we try to get a default one from the Pushwoosh
        // client
        if ($request->getApplication() === null) {
            // The 'application' must be set
            if (!isset($this->application)) {
                throw new PushwooshException('The  \'application\' property is not set !');
            }

            $request->setApplication($this->application);
        }
    }
private function setApplicationIfNotSet ( IRequest $ request ) { // If the 'application' attribute is not set in the request we try to get a default one from the Pushwoosh // client if ( $ request -> getApplication ( ) === null ) { // The 'application' must be set if ( ! isset ( $ this -> application ) ) { throw new PushwooshException ( 'The  \'application\' property is not set !' ) ; } $ request -> setApplication ( $ this -> application ) ; } }
Function used to check if the `application` 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 application parameter is set on a Pushwoosh request and if no try to set it from the Pushwoosh client auth parameter .