PHP 클래스 Webmozart\Console\UI\Layout\BlockLayout

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

공개 메소드들

메소드 설명
__construct ( ) Creates a new layout.
add ( Webmozart\Console\UI\Component $element ) : static Adds a renderable element to the layout.
beginBlock ( ) : static Starts a new indented block.
endBlock ( ) : static Ends the current indented block.
render ( IO $io, integer $indentation ) Renders all elements in the layout.

메소드 상세

__construct() 공개 메소드

Creates a new layout.
public __construct ( )

add() 공개 메소드

Adds a renderable element to the layout.
public add ( Webmozart\Console\UI\Component $element ) : static
$element Webmozart\Console\UI\Component The element to add.
리턴 static The current instance.

beginBlock() 공개 메소드

Starts a new indented block.
public beginBlock ( ) : static
리턴 static The current instance.

endBlock() 공개 메소드

Ends the current indented block.
public endBlock ( ) : static
리턴 static The current instance.

render() 공개 메소드

Renders all elements in the layout.
public render ( IO $io, integer $indentation )
$io Webmozart\Console\Api\IO\IO The I/O.
$indentation integer The number of spaces to indent.