public __construct ( Kafka\Protocol\Fetch\Topic $topic, array $context = [] ) | ||
$topic | Kafka\Protocol\Fetch\Topic | |
$context | array |
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();
}