name() 공개 메소드

Example: echo $bucket->name();
public name ( ) : string
리턴 string
예제 #1
0
 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;
 }