Skip to content
Snippets Groups Projects
Unverified Commit 0da89c0f authored by Christoph Wurst's avatar Christoph Wurst
Browse files

The file cache entry is array accessible


… so let's make this part of our API. We use it as array already.

Signed-off-by: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
parent 349da339
No related branches found
No related tags found
Loading
...@@ -27,7 +27,7 @@ use OCP\Files\Cache\ICacheEntry; ...@@ -27,7 +27,7 @@ use OCP\Files\Cache\ICacheEntry;
/** /**
* meta data for a file or folder * meta data for a file or folder
*/ */
class CacheEntry implements ICacheEntry, \ArrayAccess { class CacheEntry implements ICacheEntry {
/** /**
* @var array * @var array
*/ */
......
...@@ -23,12 +23,18 @@ ...@@ -23,12 +23,18 @@
namespace OCP\Files\Cache; namespace OCP\Files\Cache;
use ArrayAccess;
/** /**
* meta data for a file or folder * meta data for a file or folder
* *
* @since 9.0.0 * @since 9.0.0
*
* This interface extends \ArrayAccess since v21.0.0, previous versions only
* implemented it in the private implementation. Hence php would allow using the
* object as array, while strictly speaking it didn't support this.
*/ */
interface ICacheEntry { interface ICacheEntry extends ArrayAccess {
public const DIRECTORY_MIMETYPE = 'httpd/unix-directory'; public const DIRECTORY_MIMETYPE = 'httpd/unix-directory';
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment