PHP Класс Webmozart\Console\UI\Style\GridStyle

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

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

Метод Описание
asciiBorder ( ) : GridStyle A style that uses ASCII characters for drawing borders.
borderless ( ) : GridStyle A borderless style.
getBorderStyle ( ) : BorderStyle Returns the border style.
getCellAlignment ( ) : integer Returns the cell alignment.
getCellFormat ( ) : string Returns the format string for rendering cells.
getCellStyle ( ) : Style Returns the style of the grid cells.
getPaddingChar ( ) : string Returns the character used to pad cells to the desired width.
setBorderStyle ( BorderStyle $borderStyle ) : static Sets the border style.
setCellAlignment ( integer $alignment ) : static Sets the cell alignment.
setCellFormat ( string $format ) : static Sets the format string for rendering cells.
setCellStyle ( Style $style ) : static Sets the style of the grid cells.
setPaddingChar ( string $char ) : static Sets the character used to pad cells to the desired width.
solidBorder ( ) : GridStyle A style that uses Unicode characters for drawing solid borders.

Описание методов

asciiBorder() публичный статический метод

A style that uses ASCII characters for drawing borders.
public static asciiBorder ( ) : GridStyle
Результат GridStyle The style.

borderless() публичный статический метод

A borderless style.
public static borderless ( ) : GridStyle
Результат GridStyle The style.

getBorderStyle() публичный метод

Returns the border style.
public getBorderStyle ( ) : BorderStyle
Результат BorderStyle The border style.

getCellAlignment() публичный метод

Returns the cell alignment.
public getCellAlignment ( ) : integer
Результат integer One of the {@link Alignment} constants.

getCellFormat() публичный метод

Returns the format string for rendering cells.
public getCellFormat ( ) : string
Результат string The format string. The string contains the substring "%s" where the cell content is inserted.

getCellStyle() публичный метод

Returns the style of the grid cells.
public getCellStyle ( ) : Style
Результат Webmozart\Console\Api\Formatter\Style The cell style.

getPaddingChar() публичный метод

Returns the character used to pad cells to the desired width.
public getPaddingChar ( ) : string
Результат string The padding character.

setBorderStyle() публичный метод

Sets the border style.
public setBorderStyle ( BorderStyle $borderStyle ) : static
$borderStyle BorderStyle The border style.
Результат static The current instance.

setCellAlignment() публичный метод

Sets the cell alignment.
public setCellAlignment ( integer $alignment ) : static
$alignment integer One of the {@link Alignment} constants.
Результат static The current instance.

setCellFormat() публичный метод

Sets the format string for rendering cells.
public setCellFormat ( string $format ) : static
$format string The format string. The string should contain the substring "%s" where the cell content is inserted.
Результат static The current instance.

setCellStyle() публичный метод

Sets the style of the grid cells.
public setCellStyle ( Style $style ) : static
$style Webmozart\Console\Api\Formatter\Style The cell style.
Результат static The current instance.

setPaddingChar() публичный метод

Sets the character used to pad cells to the desired width.
public setPaddingChar ( string $char ) : static
$char string The padding character.
Результат static The current instance.

solidBorder() публичный статический метод

A style that uses Unicode characters for drawing solid borders.
public static solidBorder ( ) : GridStyle
Результат GridStyle The style.