PHP Class Webmozart\Console\UI\Style\GridStyle

Since: 1.0
Author: Bernhard Schussek ([email protected])
Afficher le fichier Open project: webmozart/console Class Usage Examples

Méthodes publiques

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

Method Details

asciiBorder() public static méthode

A style that uses ASCII characters for drawing borders.
public static asciiBorder ( ) : GridStyle
Résultat GridStyle The style.

borderless() public static méthode

A borderless style.
public static borderless ( ) : GridStyle
Résultat GridStyle The style.

getBorderStyle() public méthode

Returns the border style.
public getBorderStyle ( ) : BorderStyle
Résultat BorderStyle The border style.

getCellAlignment() public méthode

Returns the cell alignment.
public getCellAlignment ( ) : integer
Résultat integer One of the {@link Alignment} constants.

getCellFormat() public méthode

Returns the format string for rendering cells.
public getCellFormat ( ) : string
Résultat string The format string. The string contains the substring "%s" where the cell content is inserted.

getCellStyle() public méthode

Returns the style of the grid cells.
public getCellStyle ( ) : Style
Résultat Webmozart\Console\Api\Formatter\Style The cell style.

getPaddingChar() public méthode

Returns the character used to pad cells to the desired width.
public getPaddingChar ( ) : string
Résultat string The padding character.

setBorderStyle() public méthode

Sets the border style.
public setBorderStyle ( BorderStyle $borderStyle ) : static
$borderStyle BorderStyle The border style.
Résultat static The current instance.

setCellAlignment() public méthode

Sets the cell alignment.
public setCellAlignment ( integer $alignment ) : static
$alignment integer One of the {@link Alignment} constants.
Résultat static The current instance.

setCellFormat() public méthode

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.
Résultat static The current instance.

setCellStyle() public méthode

Sets the style of the grid cells.
public setCellStyle ( Style $style ) : static
$style Webmozart\Console\Api\Formatter\Style The cell style.
Résultat static The current instance.

setPaddingChar() public méthode

Sets the character used to pad cells to the desired width.
public setPaddingChar ( string $char ) : static
$char string The padding character.
Résultat static The current instance.

solidBorder() public static méthode

A style that uses Unicode characters for drawing solid borders.
public static solidBorder ( ) : GridStyle
Résultat GridStyle The style.