Methods summary
public static
Webmozart\Console\UI\Style\TableStyle
|
|
public static
Webmozart\Console\UI\Style\TableStyle
|
#
asciiBorder( )
A style that uses ASCII characters for drawing borders.
A style that uses ASCII characters for drawing borders.
Returns
|
public static
Webmozart\Console\UI\Style\TableStyle
|
#
solidBorder( )
A style that uses Unicode characters for drawing solid borders.
A style that uses Unicode characters for drawing solid borders.
Returns
|
public
string
|
#
getPaddingChar( )
Returns the character used to pad cells to the desired width.
Returns the character used to pad cells to the desired width.
Returns
string The padding character.
|
public
static
|
#
setPaddingChar( string $char )
Sets the character used to pad cells to the desired width.
Sets the character used to pad cells to the desired width.
Parameters
- $char
- The padding character.
Returns
static The current instance.
|
public
string
|
#
getCellFormat( )
Returns the format string for rendering cells.
Returns the format string for rendering cells.
Returns
string The format string. The string contains the substring "%s"
where the cell content is inserted.
|
public
static
|
#
setCellFormat( string $format )
Sets the format string for rendering cells.
Sets the format string for rendering cells.
Parameters
- $format
The format string. The string should contain the
substring "%s" where the cell content is inserted.
Returns
static The current instance.
|
public
int[]
|
#
getColumnAlignments( integer $nbColumns )
Returns the alignments of the table columns.
Returns the alignments of the table columns.
Parameters
- $nbColumns
- The number of alignments to return.
Returns
|
public
integer
|
#
getColumnAlignment( integer $column )
Returns the alignment of a given column.
Returns the alignment of a given column.
Parameters
- $column
- The 0-based column key.
Returns
|
public
static
|
#
setColumnAlignments( array $alignments )
Sets the alignments of the table columns.
Sets the alignments of the table columns.
Parameters
Returns
static The current instance.
|
public
static
|
#
setColumnAlignment( integer $column, integer $alignment )
Sets the alignment of a given column.
Sets the alignment of a given column.
Parameters
- $column
- The 0-based column key.
- $alignment
- The alignment.
Returns
static The current instance.
|
public
integer
|
|
public
static
|
#
setDefaultColumnAlignment( integer $alignment )
Returns the default column alignment.
Returns the default column alignment.
Parameters
Returns
static The current instance.
|
public
Webmozart\Console\UI\Style\BorderStyle
|
#
getBorderStyle( )
Returns the border style.
Returns the border style.
Returns
|
public
static
|
|
public
Webmozart\Console\Api\Formatter\Style
|
#
getCellStyle( )
Returns the style of the table cells.
Returns the style of the table cells.
Returns
|
public
static
|
|