getMetadata
function getMetadata(bool $allTopics, int $timeoutMs, ConsumerTopic $topic = null): Metadata {}
Get metadata for all topics or a single topic
$conf = SimpleKafkaClient\Configuration();
$conf->set('metadata.broker.list', 'kafka:9092');
$producer = new SimpleKafkaClient\Producer($conf);
$topicHandle = $producer->getTopicHandle('test-topic');
$singleTopicMetadata = $producer->metadata(true, $topicHandle, 10000);