getPartition

Description

public function getPartition(): int {}

Get partition of topic partition

Example

$topicPartition = new SimpleKafkaClient\TopicPartiton('test-topic', 0, 100);
echo sprintf('TopicPartition partition %d', $topicPartition->getPartition()) . PHP_EOL;