public function __construct(\Kafka\Protocol\Fetch\Topic $topic, $context = array()) { $this->stream = $topic->getStream(); $this->topicName = $topic->key(); $this->context = $context; $this->partitionCount = $this->getPartitionCount(); }