Make callbacks properties protected in the DispatcherLoop class.

This makes easier to extend the class. The underlying pub/sub iterator
property is still private, but can be accessed via public getter method.
This commit is contained in:
Daniele Alessandri
2013-05-31 10:21:21 +02:00
parent dd50cfe47e
commit 69c66e157f
+4 -3
View File
@@ -22,9 +22,10 @@ use Predis\ClientInterface;
class DispatcherLoop
{
private $pubSubContext;
private $callbacks;
private $defaultCallback;
private $subscriptionCallback;
protected $callbacks;
protected $defaultCallback;
protected $subscriptionCallback;
/**
* @param ClientInterface Client instance used by the context.