Google\Cloud\Storage\StorageObject::name PHP Method

name() public method

Example: echo $object->name();
public name ( ) : string
return string
    public function name()
    {
        return $this->identity['object'];
    }

Usage Example

 public function testGetsName()
 {
     $object = new StorageObject($this->connection->reveal(), $name = 'object.txt', 'bucket');
     $this->assertEquals($name, $object->name());
 }
All Usage Examples Of Google\Cloud\Storage\StorageObject::name