public function testGetsName() { $bucket = new Bucket($this->connection->reveal(), $name = 'bucket'); $this->assertEquals($name, $bucket->name()); }
/** * Return a public url to a file. * * Note: The file must have `AdapterInterface::VISIBILITY_PUBLIC` visibility. * * @param string $path * @return string */ public function getUrl($path) { $uri = rtrim($this->storageApiUri, '/'); $path = $this->applyPathPrefix($path); return $uri . '/' . $this->bucket->name() . '/' . $path; }