1 Star 3 Fork 26

yg178/php-console

forked from inhere/php-console 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BaseCommandInterface.php 866 Bytes
一键复制 编辑 原始数据 按行查看 历史
inhere 提交于 2018-01-24 22:24 +08:00 . format codes, add more param type define
<?php
/**
* Created by PhpStorm.
* User: inhere
* Date: 2017-12-18
* Time: 18:57
*/
namespace Inhere\Console\Base;
use Inhere\Console\IO\InputDefinition;
/**
* Interface BaseCommandInterface
* @package Inhere\Console\Base
*/
interface BaseCommandInterface
{
const OK = 0;
// name -> {name}
const ANNOTATION_VAR = '{%s}'; // '{$%s}';
/**
* run command
* @param string $command
* @return int
*/
public function run(string $command = ''): int;
/**
* @return InputDefinition|null
*/
public function getDefinition();
/**
* @return AbstractApplication
*/
public function getApp(): AbstractApplication;
/**
* @return string
*/
public static function getName(): string;
/**
* @return string
*/
public static function getDescription(): string;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/hwsyy/php-console.git
git@gitee.com:hwsyy/php-console.git
hwsyy
php-console
php-console
master

搜索帮助