@@ -34,23 +34,26 @@ class ResponseTagger
3434 /**
3535 * @var TagsInterface
3636 */
37- private $ client ;
37+ private $ proxyClient ;
3838
3939 /**
4040 * @var array
4141 */
4242 private $ tags = [];
4343
4444 /**
45- * Constructor .
45+ * Create the response tagger with a tag capable proxy client and options .
4646 *
47- * @param TagsInterface $client
48- * @param array $options supported options:
49- * - strict (bool) Default: false. If set to true, throws exception when adding empty tags
47+ * Supported options are:
48+ *
49+ * - strict (bool) Default: false. If set to true, throws exception when adding empty tags
50+ *
51+ * @param TagsInterface $proxyClient
52+ * @param array $options
5053 */
51- public function __construct (TagsInterface $ client , array $ options = array ())
54+ public function __construct (TagsInterface $ proxyClient , array $ options = array ())
5255 {
53- $ this ->client = $ client ;
56+ $ this ->proxyClient = $ proxyClient ;
5457
5558 $ resolver = new OptionsResolver ();
5659 $ resolver ->setDefaults (array (
@@ -69,7 +72,7 @@ public function __construct(TagsInterface $client, array $options = array())
6972 */
7073 public function getTagsHeaderName ()
7174 {
72- return $ this ->client ->getTagsHeaderName ();
75+ return $ this ->proxyClient ->getTagsHeaderName ();
7376 }
7477
7578 /**
@@ -81,7 +84,7 @@ public function getTagsHeaderName()
8184 */
8285 public function getTagsHeaderValue ()
8386 {
84- return $ this ->client ->getTagsHeaderValue ($ this ->tags );
87+ return $ this ->proxyClient ->getTagsHeaderValue ($ this ->tags );
8588 }
8689
8790 /**
0 commit comments