Storage wrapper: provide access to the wrapped storage

This commit is contained in:
Robin Appelman 2013-06-07 17:12:45 +02:00
parent f35578ec54
commit 85a9b7f094
1 changed files with 8 additions and 1 deletions

View File

@ -10,7 +10,7 @@ namespace OC\Files\Storage;
class Wrapper implements Storage {
/**
* @var Storage $storage
* @var \OC\Files\Storage\Storage $storage
*/
protected $storage;
@ -21,6 +21,13 @@ class Wrapper implements Storage {
$this->storage = $parameters['storage'];
}
/**
* @return \OC\Files\Storage\Storage
*/
public function getWrapperStorage() {
return $this->storage;
}
/**
* Get the identifier for the storage,
* the returned id should be the same for every storage object that is created with the same parameters