diff options
author | Anna Larch <anna@nextcloud.com> | 2022-10-01 19:31:30 +0300 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2022-10-01 19:31:30 +0300 |
commit | 43973587781c70486295a0a87ebaf363f58da67a (patch) | |
tree | b305beba91d311b547719c37393b3df55f3da3d7 /lib | |
parent | f5c92cc4d9b52675f824cde7dc883db39c3161f5 (diff) |
Move Cache to typed propertiesenh/move-cache-typed-properties
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Cache/Cache.php | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/lib/Cache/Cache.php b/lib/Cache/Cache.php index 323fbb74e..29f643e08 100644 --- a/lib/Cache/Cache.php +++ b/lib/Cache/Cache.php @@ -28,6 +28,7 @@ use Exception; use Horde_Imap_Client_Cache_Backend; use Horde_Imap_Client_Exception; use InvalidArgumentException; +use OCP\ICache; /** * This class is inspired by Horde_Imap_Client_Cache_Backend_Cache of the Horde Project @@ -38,42 +39,32 @@ class Cache extends Horde_Imap_Client_Cache_Backend { /** * The cache object. - * - * @var \OCP\ICache */ - protected $_cache; + protected ICache $_cache; /** * The working data for the current pageload. All changes take place to * this data. - * - * @var array */ - protected $_data = []; + protected array $_data = []; /** * The list of cache slices loaded. - * - * @var array */ - protected $_loaded = []; + protected array $_loaded = []; /** * The mapping of UIDs to slices. - * - * @var array */ - protected $_slicemap = []; + protected array $_slicemap = []; /** * The list of items to update: * - add: (array) List of IDs that were added. * - slice: (array) List of slices that were modified. * - slicemap: (boolean) Was slicemap info changed? - * - * @var array */ - protected $_update = []; + protected array $_update = []; /** * Constructor. |