DelayedFilesService
in package
Table of Contents
Properties
- $storage : GoogleCloudStorageComponent
- $delayedFilesDeletionRepository : DelayedFilesDeletionRepository
Methods
- __construct() : mixed
- createNewDelayedFileDeletion() : DelayedFilesDeletion|null
- deleteDelayedFileFromGcsAndSystem() : mixed
- fillDeletionAllowedDateTimeToDelayedFile() : DelayedFilesDeletion|null
- getDelayedFilesWithoutDeletionAllowedDateTime() : array<string|int, DelayedFilesDeletion>
- getRemovableDelayedFiles() : array<string|int, DelayedFilesDeletion>
- getDeletionAllowedDateTime() : mixed
Properties
$storage
protected
GoogleCloudStorageComponent
$storage
$delayedFilesDeletionRepository
private
DelayedFilesDeletionRepository
$delayedFilesDeletionRepository
Methods
__construct()
public
__construct(DelayedFilesDeletionRepository $delayedFilesDeletionRepository, GoogleCloudStorageComponent $storage) : mixed
Parameters
- $delayedFilesDeletionRepository : DelayedFilesDeletionRepository
- $storage : GoogleCloudStorageComponent
createNewDelayedFileDeletion()
public
createNewDelayedFileDeletion(Client $client, mixed $resourceId, mixed $fileFullPath) : DelayedFilesDeletion|null
Parameters
- $client : Client
- $resourceId : mixed
- $fileFullPath : mixed
Tags
Return values
DelayedFilesDeletion|nulldeleteDelayedFileFromGcsAndSystem()
public
deleteDelayedFileFromGcsAndSystem(DelayedFilesDeletion $delayedFilesDeletion) : mixed
Parameters
- $delayedFilesDeletion : DelayedFilesDeletion
Tags
fillDeletionAllowedDateTimeToDelayedFile()
public
fillDeletionAllowedDateTimeToDelayedFile(DelayedFilesDeletion $delayedFilesDeletion) : DelayedFilesDeletion|null
Parameters
- $delayedFilesDeletion : DelayedFilesDeletion
Tags
Return values
DelayedFilesDeletion|nullgetDelayedFilesWithoutDeletionAllowedDateTime()
public
getDelayedFilesWithoutDeletionAllowedDateTime() : array<string|int, DelayedFilesDeletion>
Return values
array<string|int, DelayedFilesDeletion>getRemovableDelayedFiles()
public
getRemovableDelayedFiles() : array<string|int, DelayedFilesDeletion>
Return values
array<string|int, DelayedFilesDeletion>getDeletionAllowedDateTime()
private
getDeletionAllowedDateTime(StorageObject $gcsObject, DelayedFilesDeletion $delayedFilesDeletion) : mixed
Parameters
- $gcsObject : StorageObject
- $delayedFilesDeletion : DelayedFilesDeletion