getOffset

Description

public function getOffset(): int {}

Get offset of topic partition

Example

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