Google\Cloud\Storage\Bucket::__construct PHP Method

__construct() public method

public __construct ( Google\Cloud\Storage\Connection\ConnectionInterface $connection, string $name, array $info = null )
$connection Google\Cloud\Storage\Connection\ConnectionInterface Represents a connection to Cloud Storage.
$name string The bucket's name.
$info array [optional] The bucket's metadata.
    public function __construct(ConnectionInterface $connection, $name, array $info = null)
    {
        $this->connection = $connection;
        $this->identity = ['bucket' => $name];
        $this->info = $info;
        $this->acl = new Acl($this->connection, 'bucketAccessControls', $this->identity);
        $this->defaultAcl = new Acl($this->connection, 'defaultObjectAccessControls', $this->identity);
    }