Expose underlying client object from pub/sub iterators.

This commit is contained in:
Daniele Alessandri
2013-05-31 10:17:08 +02:00
parent 6cd124cc59
commit 8451146d38
+10
View File
@@ -41,6 +41,16 @@ class PubSubContext extends AbstractPubSubContext
$this->genericSubscribeInit('psubscribe');
}
/**
* Returns the underlying client instance used by the pub/sub iterator.
*
* @return ClientInterface
*/
public function getClient()
{
return $this->client;
}
/**
* Checks if the passed client instance satisfies the required conditions
* needed to initialize a Publish / Subscribe context.