1 Star 0 Fork 0

秋枫雁飞/weline-module-queue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
QueueInterface.php 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
Aiweline 提交于 2024-06-12 02:41 . 升级
<?php
declare(strict_types=1);
/*
* 本文件由 秋枫雁飞 编写,所有解释权归Aiweline所有。
* 作者:Administrator
* 邮箱:aiweline@qq.com
* 网址:aiweline.com
* 论坛:https://bbs.aiweline.com
* 日期:11/7/2023 09:26:19
*/
namespace Weline\Queue;
use Weline\Queue\Model\Queue;
interface QueueInterface
{
/**
* @DESC # 队列名
*
* @AUTH 秋枫雁飞
* @EMAIL aiweline@qq.com
* @DateTime: 11/7/2023 下午2:01
* 参数区:
* @return string
*/
public function name(): string;
/**
* @DESC # 队列类型所需属性 使用:\Weline\Eav\Model\EavAttribute[]
*
* @AUTH 秋枫雁飞
* @EMAIL aiweline@qq.com
* @DateTime: 23/4/2024 下午4:55
* 参数区:
* @return array \Weline\Eav\Model\EavAttribute[]
*/
public function attributes(): array;
/**
* @DESC # 提示
*
* @AUTH 秋枫雁飞
* @EMAIL aiweline@qq.com
* @DateTime: 25/7/2023 下午3:41
* 参数区:
* @return string
*/
public function tip(): string;
/**
* @DESC # 队列执行方法
*
* @AUTH 秋枫雁飞
* @EMAIL aiweline@qq.com
* @DateTime: 11/7/2023 下午2:01
* 参数区:
* @return string 执行结果
*/
public function execute(Queue &$queue): string;
/**
* @DESC # 验证数据结构是否正确
*
* @AUTH 秋枫雁飞
* @EMAIL aiweline@qq.com
* @DateTime: 25/7/2023 下午3:40
* 参数区:
* @return string|bool
*/
public function validate(Queue &$queue): bool;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aiweline/weline-module-queue.git
git@gitee.com:aiweline/weline-module-queue.git
aiweline
weline-module-queue
weline-module-queue
master

搜索帮助