PHP 클래스 Webmozart\Console\UI\Help\ApplicationHelp

부터: 1.0
저자: Bernhard Schussek ([email protected])
상속: extends AbstractHelp
파일 보기 프로젝트 열기: webmozart/console 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Webmozart\Console\Api\Application\Application $application ) Creates the help.

보호된 메소드들

메소드 설명
renderCommand ( BlockLayout $layout, Command $command ) Renders a command in the "Commands" section.
renderCommands ( BlockLayout $layout, CommandCollection $commands ) Renders the "Commands" section.
renderDescription ( BlockLayout $layout, string $help ) Renders the "Description" section.
renderHelp ( BlockLayout $layout )
renderName ( BlockLayout $layout, Webmozart\Console\Api\Application\Application $application ) Renders the application name.
renderUsage ( BlockLayout $layout, Webmozart\Console\Api\Application\Application $application, ArgsFormat $argsFormat ) Renders the "Usage" section.

메소드 상세

__construct() 공개 메소드

Creates the help.
public __construct ( Webmozart\Console\Api\Application\Application $application )
$application Webmozart\Console\Api\Application\Application The application to render.

renderCommand() 보호된 메소드

Renders a command in the "Commands" section.
protected renderCommand ( BlockLayout $layout, Command $command )
$layout Webmozart\Console\UI\Layout\BlockLayout The layout.
$command Webmozart\Console\Api\Command\Command The command to describe.

renderCommands() 보호된 메소드

Renders the "Commands" section.
protected renderCommands ( BlockLayout $layout, CommandCollection $commands )
$layout Webmozart\Console\UI\Layout\BlockLayout The layout.
$commands Webmozart\Console\Api\Command\CommandCollection The commands to describe.

renderDescription() 보호된 메소드

Renders the "Description" section.
protected renderDescription ( BlockLayout $layout, string $help )
$layout Webmozart\Console\UI\Layout\BlockLayout The layout.
$help string The help text.

renderHelp() 보호된 메소드

protected renderHelp ( BlockLayout $layout )
$layout Webmozart\Console\UI\Layout\BlockLayout

renderName() 보호된 메소드

Renders the application name.
protected renderName ( BlockLayout $layout, Webmozart\Console\Api\Application\Application $application )
$layout Webmozart\Console\UI\Layout\BlockLayout The layout.
$application Webmozart\Console\Api\Application\Application The application.

renderUsage() 보호된 메소드

Renders the "Usage" section.
protected renderUsage ( BlockLayout $layout, Webmozart\Console\Api\Application\Application $application, ArgsFormat $argsFormat )
$layout Webmozart\Console\UI\Layout\BlockLayout The layout.
$application Webmozart\Console\Api\Application\Application The application to describe.
$argsFormat Webmozart\Console\Api\Args\Format\ArgsFormat The format of the console arguments.