getName

Description

public function getName(): string {}

Get topic name

Example

$conf = new SimpleKafkaClient\Configuration();
$conf->set('auto.offset.reset', 'earliest');
$consumer = new SimpleKafkaClient\Consumer($conf);
$consumerTopic = $consumer->getTopicHandle('test-topic');
echo sprintf('Topic name: %s', $consumerTopic->getName()) . PHP_EOL;