PHP Class think\console\output\Descriptor

Afficher le fichier Open project: top-think/framework Class Usage Examples

Protected Properties

Свойство Type Description
$output think\console\Output

Méthodes publiques

Méthode Description
describe ( Output $output, $object, array $options = [] )

Méthodes protégées

Méthode 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

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

Method Details

describe() public méthode

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

describeCommand() protected méthode

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

describeConsole() protected méthode

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

describeInputArgument() protected méthode

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

describeInputDefinition() protected méthode

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

describeInputOption() protected méthode

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

write() protected méthode

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

Property Details

$output protected_oe property

protected Output,think\console $output
Résultat think\console\Output