Kafka\ZooKeeper::getTopicDetail PHP Method

getTopicDetail() public method

get topic detail
public getTopicDetail ( string $topicName ) : string | boolean
$topicName string
return string | boolean
    public function getTopicDetail($topicName)
    {
        $result = array();
        $path = sprintf(self::TOPIC_PATCH, (string) $topicName);
        if ($this->zookeeper->exists($path)) {
            $result = $this->zookeeper->get($path);
            if (!$result) {
                return false;
            }
            $result = json_decode($result, true);
        }
        return $result;
    }