PubSub/src/Topic.php
private function subscriptionFactory($name, array $info = [])
    {
        return new Subscription(
            $this->connection,
            $this->projectId,
            $name,
            $this->name,
            $this->encode,
            $info
        );
    }
private function subscriptionFactory($name, array $info = [])
    {
        return new Subscription(
            $this->connection,
            $this->projectId,
            $name,
            $this->name,
            $this->encode,
            $info
        );
    }
private function subscriptionFactory ( $ name , array $ info = [ ] ) { return new Subscription ( $ this -> connection , $ this -> projectId , $ name , $ this -> name , $ this -> encode , $ info ) ; }
Create a new subscription instance with the given name and optional
subscription data.

@codingStandardsIgnoreStart
@param  string $name
@param  array $info [optional] A representation of a
[Subscription](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions#Subscription)
@return Subscription
@codingStandardsIgnoreEnd
Create a new subscription instance with the given name and optional subscription data .