Gaufrette\File::getKey PHP Method

getKey() public method

Returns the key.
public getKey ( ) : string
return string
    public function getKey()
    {
        return $this->key;
    }

Usage Example

 public function __construct(File $file, Filesystem $filesystem, $streamWrapperPrefix = null)
 {
     parent::__construct($file->getKey(), $filesystem);
     $this->streamWrapperPrefix = $streamWrapperPrefix;
 }