__construct

Description

public function __construct(string $topicName, int $partition, int $offset = 0) {}

Create new topic partition instance

Example

$topicPartition = new SimpleKafkaClient\TopicPartiton('test-topic', 0);