/** * {@inheritDoc} */ public function pushStat(PushStatRequest $pushStatRequest) { // If the 'application' attribute is not set in the request we try to get a default one from the Pushwoosh // client if ($pushStatRequest->getApplication() === null) { // The 'application' must be set if (!isset($this->application)) { throw new PushwooshException('The \'application\' property is not set !'); } $pushStatRequest->setApplication($this->application); } $response = $this->cURLClient->pushwooshCall('pushState', $pushStatRequest->jsonSerialize()); return PushStatResponse::create($response); }
/** * {@inheritDoc} */ public function pushStat(PushStatRequest $pushStatRequest) { $this->pushwhooshRequests[] = $pushStatRequest; return PushStatResponse::create(json_decode('{ "status_code":200, "status_message":"OK" }', true)); }
/** * {@inheritDoc} */ public function pushStat(PushStatRequest $pushStatRequest) { // If the 'application' attribute is not set in the request we try to get a default one from the Pushwoosh // client $this->setApplicationIfNotSet($pushStatRequest); $response = $this->cURLClient->pushwooshCall('pushStat', $pushStatRequest->jsonSerialize()); return PushStatResponse::create($response); }