mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 01:25:00 +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();
|
||||
}
|
||||
}
|
||||
|
@@ -226,4 +226,9 @@ class StoredObjectVersion implements TrackCreationInterface
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isEncrypted(): bool
|
||||
{
|
||||
return ([] !== $this->getKeyInfos()) && ([] !== $this->getIv());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user