PubSub/src/PubSubClient.php
public function snapshot($name, array $info = [])
    {
        return new Snapshot($this->connection, $this->projectId, $name, $this->encode, $info);
    }
public function snapshot($name, array $info = [])
    {
        return new Snapshot($this->connection, $this->projectId, $name, $this->encode, $info);
    }
public function snapshot ( $ name , array $ info = [ ] ) { return new Snapshot ( $ this -> connection , $ this -> projectId , $ name , $ this -> encode , $ info ) ; }
Lazily create a snapshot instance.

Example:
```
$snapshot = $pubsub->snapshot('my-snapshot');
```

@param string $name The snapshot name.
@param array $info [optional] Snapshot info.
@return Snapshot
Lazily create a snapshot instance .