remove ArrayAccess, JsonSerializable from the public part of FileInfo

remotes/origin/ldap_group_count
Robin Appelman 11 years ago
parent 39d2c18793
commit 82762bb462
  1. 4
      lib/private/files/fileinfo.php
  2. 20
      lib/public/files/fileinfo.php

@ -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
*/

@ -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
*

Loading…
Cancel
Save