diff --git a/src/Client.php b/src/Client.php index 5125536..cb2be3a 100644 --- a/src/Client.php +++ b/src/Client.php @@ -16,9 +16,14 @@ class Client implements ClientInterface private $proxyApiUrl; private $guzzleClient; + /** + * @param GuzzleHttp\ClientInterface $client + * @return $this + */ public function injectGuzzleHttpClient(GuzzleHttp\ClientInterface $client) { $this->guzzleClient = $client; + return $this; } /** @@ -82,7 +87,6 @@ public function addTopicSubscription($topic_id, $recipients_tokens) return $this->processTopicSubscription($topic_id, $recipients_tokens, self::DEFAULT_TOPIC_ADD_SUBSCRIPTION_API_URL); } - /** * @param integer $topic_id * @param array|string $recipients_tokens @@ -94,7 +98,6 @@ public function removeTopicSubscription($topic_id, $recipients_tokens) return $this->processTopicSubscription($topic_id, $recipients_tokens, self::DEFAULT_TOPIC_REMOVE_SUBSCRIPTION_API_URL); } - /** * @param integer $topic_id * @param array|string $recipients_tokens @@ -122,7 +125,9 @@ protected function processTopicSubscription($topic_id, $recipients_tokens, $url) ); } - + /** + * @return string + */ private function getApiUrl() { return isset($this->proxyApiUrl) ? $this->proxyApiUrl : self::DEFAULT_API_URL;