PHP Class think\console\output\Descriptor

Datei anzeigen Open project: top-think/framework Class Usage Examples

Protected Properties

Property Type Description
$output think\console\Output

Public Methods

Method Description
describe ( Output $output, $object, array $options = [] )

Protected Methods

Method Description
describeCommand ( Command $command, array $options = [] ) : string | mixed 描述指令
describeConsole ( Console $console, array $options = [] ) : string | mixed 描述控制台
describeInputArgument ( Argument $argument, array $options = [] ) : string | mixed 描述参数
describeInputDefinition ( Definition $definition, array $options = [] ) : string | mixed 描述输入
describeInputOption ( Option $option, array $options = [] ) : string | mixed 描述选项
write ( string $content, boolean $decorated = false ) 输出内容

Private Methods

Method Description
calculateTotalWidthForOptions ( Option[] $options ) : integer
formatDefaultValue ( mixed $default ) : string 格式化
getColumnWidth ( array $commands ) : integer
writeText ( $content, array $options = [] )

Method Details

describe() public method

public describe ( Output $output, $object, array $options = [] )
$output think\console\Output
$options array

describeCommand() protected method

描述指令
protected describeCommand ( Command $command, array $options = [] ) : string | mixed
$command think\console\Command
$options array
return string | mixed

describeConsole() protected method

描述控制台
protected describeConsole ( Console $console, array $options = [] ) : string | mixed
$console think\Console
$options array
return string | mixed

describeInputArgument() protected method

描述参数
protected describeInputArgument ( Argument $argument, array $options = [] ) : string | mixed
$argument think\console\input\Argument
$options array
return string | mixed

describeInputDefinition() protected method

描述输入
protected describeInputDefinition ( Definition $definition, array $options = [] ) : string | mixed
$definition think\console\input\Definition
$options array
return string | mixed

describeInputOption() protected method

描述选项
protected describeInputOption ( Option $option, array $options = [] ) : string | mixed
$option think\console\input\Option
$options array
return string | mixed

write() protected method

输出内容
protected write ( string $content, boolean $decorated = false )
$content string
$decorated boolean

Property Details

$output protected_oe property

protected Output,think\console $output
return think\console\Output