Format code using php-cs-fixer
This commit is contained in:
parent
43d7dc92cd
commit
d52c6184b9
352 changed files with 17473 additions and 17041 deletions
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* Provides access to file objects stored on a specific storage backend.
|
||||
*/
|
||||
abstract class StorageBackend
|
||||
|
@ -9,14 +8,16 @@ abstract class StorageBackend
|
|||
private $bucket;
|
||||
private $accessKey;
|
||||
private $secretKey;
|
||||
|
||||
|
||||
/** Returns the file object's URL to the storage backend it is located on. */
|
||||
abstract public function getAbsoluteFilePath($resourceId);
|
||||
|
||||
/** Returns the file object's signed URL. The URL must be signed since they
|
||||
|
||||
/** Returns the file object's signed URL. The URL must be signed since they.
|
||||
* @param mixed $resourceId
|
||||
* @param mixed $contentDispositionFilename
|
||||
* privately stored on the storage backend. */
|
||||
abstract public function getDownloadURLs($resourceId, $contentDispositionFilename);
|
||||
|
||||
|
||||
/** Deletes the file from the storage backend. */
|
||||
abstract public function deletePhysicalFile($resourceId);
|
||||
|
||||
|
@ -31,27 +32,27 @@ abstract class StorageBackend
|
|||
{
|
||||
return $this->bucket;
|
||||
}
|
||||
|
||||
|
||||
protected function setBucket($bucket)
|
||||
{
|
||||
$this->bucket = $bucket;
|
||||
}
|
||||
|
||||
|
||||
protected function getAccessKey()
|
||||
{
|
||||
return $this->accessKey;
|
||||
}
|
||||
|
||||
|
||||
protected function setAccessKey($accessKey)
|
||||
{
|
||||
$this->accessKey = $accessKey;
|
||||
}
|
||||
|
||||
|
||||
protected function getSecretKey()
|
||||
{
|
||||
return $this->secretKey;
|
||||
}
|
||||
|
||||
|
||||
protected function setSecretKey($secretKey)
|
||||
{
|
||||
$this->secretKey = $secretKey;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue