邹景立 34104dad22 Update plugin headers and add rewrite-model script
Replace header text "Payment Plugin for ThinkAdmin" with "ThinkAdmin Plugin for ThinkAdmin" across project files (configs, controllers, plugins, php-cs-fixer, etc.) to unify branding. Add a new composer script "rewrite-model" to regenerate models and run php-cs-fixer. Also apply a minor newline fix in .copilot-commit-message-instructions.md.
2026-02-01 14:24:36 +08:00

84 lines
2.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
declare(strict_types=1);
/**
* +----------------------------------------------------------------------
* | ThinkAdmin Plugin for ThinkAdmin
* +----------------------------------------------------------------------
* | 版权所有 2014~2026 ThinkAdmin [ thinkadmin.top ]
* +----------------------------------------------------------------------
* | 官方网站: https://thinkadmin.top
* +----------------------------------------------------------------------
* | 开源协议 ( https://mit-license.org )
* | 免责声明 ( https://thinkadmin.top/disclaimer )
* | 会员特权 ( https://thinkadmin.top/vip-introduce )
* +----------------------------------------------------------------------
* | gitee 代码仓库https://gitee.com/zoujingli/ThinkAdmin
* | github 代码仓库https://github.com/zoujingli/ThinkAdmin
* +----------------------------------------------------------------------
*/
namespace think\admin\contract;
/**
* 流协议接口.
* @class StreamInterface
*/
interface StreamInterface
{
public function dir_closedir(): bool;
public function dir_opendir(string $path, int $options): bool;
public function dir_readdir(): string;
public function dir_rewinddir(): bool;
public function mkdir(string $path, int $mode, int $options): bool;
public function rename(string $path_from, string $path_to): bool;
public function rmdir(string $path, int $options): bool;
public function stream_cast(int $cast_as);
public function stream_close(): void;
public function stream_eof(): bool;
public function stream_flush(): bool;
public function stream_lock(int $operation): bool;
public function stream_metadata(string $path, int $option, $value): bool;
public function stream_open(string $path, string $mode, int $options, ?string &$opened_path): bool;
/**
* @return false|string
*/
public function stream_read(int $count);
public function stream_seek(int $offset, int $whence = SEEK_SET): bool;
public function stream_set_option(int $option, int $arg1, int $arg2): bool;
/**
* @return array|false
*/
public function stream_stat();
public function stream_tell(): int;
public function stream_truncate(int $new_size): bool;
public function stream_write(string $data): int;
public function unlink(string $path): bool;
/**
* @return array|false
*/
public function url_stat(string $path, int $flags);
}