Add file interface

This will be used for the filestorage class that needs to be
implemented.
This commit is contained in:
Dennis Eichhorn 2016-08-18 11:28:06 +02:00
parent d050e29820
commit c3d6da2539

View File

@ -0,0 +1,86 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\System\File;
/**
* Filesystem class.
*
* Performing operations on the file system
*
* @category Framework
* @package phpOMS\System\File
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
interface FileInterface
{
public function getCount() : int;
public function getSize() : int;
public function getName() : string;
public function getPath() : string;
public function getParent() : FileInterface;
public function createNode() : bool;
public function copyNode() : bool;
public function moveNode() : bool;
public function deleteNode() : bool;
public function putContent() : bool;
public function getContent() : string;
public function getCreatedAt() : \DateTime;
public function getChangedAt() : \DateTime;
public function getOwner() : int;
public function getPermission() : string;
public function index();
public static function createdAt() : \DateTime;
public static function changedAt() : \DateTime;
public static function owner() : int;
public static function permission() : string;
public static function parent() : string;
public static function create() : bool;
public static function delete() : bool;
public static function copy() : bool;
public static function move() : bool;
public static function put() : bool;
public static function get() : string;
}