Files
ulthon_admin/extend/base/common/interface/test/CommandTestInterfaceBase.php

20 lines
632 B
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
namespace base\common\interface\test;
use think\console\Input;
use think\console\Output;
/**
* 测试类接口.
*
* 实现了该接口的类,会在执行命令时,自动执行该接口的方法,比如传入参数,输出结果等。
* 要注意的是并不代表该接口只能在命令行中使用也可以在其他地方使用在其他地方使用时传入不同“实现”的output和input。例如在控制器中使用传入的output会输出到Response。
*/
interface CommandTestInterfaceBase
{
public function setOutput(Output $output);
public function setInput(Input $input);
}