Ai
1 Star 0 Fork 6

端木凌风/php-sdk-binary-tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
TrainingCase.php 770 Bytes
一键复制 编辑 原始数据 按行查看 历史
端木凌风 提交于 2021-12-24 09:38 +08:00 . init
<?php
namespace SDK\Build\PGO\Interfaces;
use SDK\Build\PGO\Config as PGOConfig;
use SDK\Build\PGO\Tool\PackageWorkman;
interface TrainingCase
{
public function __construct(PGOConfig $conf, ?Server $srv_http, ?Server\DB $srv_db);
/* Name of the training case, usually should be same as dirname and namespace. */
public function getName() : string;
/* Prepare anything necessary to start initialization, like fetch required packages, etc. */
public function prepareInit(PackageWorkman $pw, bool $force = false) : void;
/* Initialize the case, run only once on a new checkout. */
public function init() : void;
/* Run training. */
public function run() : void;
/* Get training type, it's like "web", "cli", etc.*/
public function getType() : string;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/lfveeker/php-sdk-binary-tool.git
git@gitee.com:lfveeker/php-sdk-binary-tool.git
lfveeker
php-sdk-binary-tool
php-sdk-binary-tool
master

搜索帮助