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 <?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 * This file is licensed under the Affero General Public License version 3 or
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
@ -8,7 +8,7 @@
namespace OC\Files; namespace OC\Files;
class FileInfo implements \OCP\Files\FileInfo { class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess, \JsonSerializable {
/** /**
* @var array $data * @var array $data
*/ */

View File

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