Files
lsky-pro/extend/strategy/Driver.php
T
2019-10-31 11:00:55 +08:00

52 lines
814 B
PHP

<?php
/**
* User: Wisp X
* Date: 2018/9/29
* Time: 下午2:17
* Link: https://github.com/wisp-x
*/
namespace strategy;
/**
* 对象储存接口
*
* Interface Driver
* @package strategy
*/
interface Driver
{
public function __construct($options = []);
/**
* 创建文件
*
* @param $pathname
* @param $file
* @return mixed
*/
public function create($pathname, $file);
/**
* 删除单个文件
*
* @param $pathname
* @return mixed
*/
public function delete($pathname);
/**
* 删除多个文件
*
* @param array $list 一维数组
* @return mixed
*/
public function deletes(array $list);
/**
* 获取出错信息
*
* @return mixed
*/
public function getError();
}