mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 09:34:59 +00:00
Implements StoredObjectManager for local storage
This commit is contained in:
@@ -448,4 +448,12 @@ class StoredObject implements Document, TrackCreationInterface
|
||||
{
|
||||
return $storedObject->getDeleteAt() < $now && $storedObject->getVersions()->isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if it has a current version, and if the current version is encrypted.
|
||||
*/
|
||||
public function isEncrypted(): bool
|
||||
{
|
||||
return $this->hasCurrentVersion() && $this->getCurrentVersion()->isEncrypted();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user