PHP Класс Webmozart\Console\UI\Layout\BlockLayout

С версии: 1.0
Автор: Bernhard Schussek ([email protected])
Наследование: implements Webmozart\Console\UI\Component
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.