remove ArrayAccess, JsonSerializable from the public part of FileInfo

This commit is contained in:
Robin Appelman 2014-01-13 15:13:45 +01:00
parent 39d2c18793
commit 82762bb462
2 changed files with 7 additions and 17 deletions

View File

@ -1,6 +1,6 @@
<?php
/**
* Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
* Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
@ -8,7 +8,7 @@
namespace OC\Files;
class FileInfo implements \OCP\Files\FileInfo {
class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess, \JsonSerializable {
/**
* @var array $data
*/

View File

@ -1,26 +1,16 @@
<?php
/**
* Created by PhpStorm.
* User: robin
* Date: 1/13/14
* Time: 1:45 PM
* Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
namespace OCP\Files;
interface FileInfo extends \ArrayAccess, \JsonSerializable {
interface FileInfo {
const TYPE_FILE = 'file';
const TYPE_FOLDER = 'folder';
public function offsetSet($offset, $value);
public function offsetGet($offset);
public function offsetUnset($offset);
public function offsetExists($offset);
public function jsonSerialize();
/**
* Get the Etag of the file or folder
*