PubSub/src/PubSubClient.php
private function topicFactory($name, array $info = [])
    {
        return new Topic(
            $this->connection,
            $this->projectId,
            $name,
            $this->encode,
            $info,
            $this->clientConfig
        );
    }
private function topicFactory($name, array $info = [])
    {
        return new Topic(
            $this->connection,
            $this->projectId,
            $name,
            $this->encode,
            $info,
            $this->clientConfig
        );
    }
private function topicFactory ( $ name , array $ info = [ ] ) { return new Topic ( $ this -> connection , $ this -> projectId , $ name , $ this -> encode , $ info , $ this -> clientConfig ) ; }
Create an instance of a topic

@codingStandardsIgnoreStart
@param string $name The topic name
@param array  $info [optional] Information about the topic. Used internally to
populate topic objects with an API result. Should be
a representation of a [Topic](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic).
@return Topic
@codingStandardsIgnoreEnd
Create an instance of a topic