public function __construct(Consumer $pubsub) { $this->callbacks = array(); $this->pubsub = $pubsub; }