TableCellStyle
in package
Tags
Table of Contents
Constants
- DEFAULT_ALIGN = 'left'
- ALIGN_MAP = ['left' => \STR_PAD_RIGHT, 'center' => \STR_PAD_BOTH, 'right' => \STR_PAD_LEFT]
- TAG_OPTIONS = ['fg', 'bg', 'options']
Properties
- $options : array<string|int, mixed>
Methods
- __construct() : mixed
- getCellFormat() : string|null
- getOptions() : array<string|int, mixed>
- getPadByAlign() : int
- getTagOptions() : array<string|int, string>
- Gets options we need for tag for example fg, bg.
Constants
DEFAULT_ALIGN
public
mixed
DEFAULT_ALIGN
= 'left'
ALIGN_MAP
private
mixed
ALIGN_MAP
= ['left' => \STR_PAD_RIGHT, 'center' => \STR_PAD_BOTH, 'right' => \STR_PAD_LEFT]
TAG_OPTIONS
private
mixed
TAG_OPTIONS
= ['fg', 'bg', 'options']
Properties
$options
private
array<string|int, mixed>
$options
= ['fg' => 'default', 'bg' => 'default', 'options' => null, 'align' => self::DEFAULT_ALIGN, 'cellFormat' => null]
Methods
__construct()
public
__construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $options : array<string|int, mixed> = []
getCellFormat()
public
getCellFormat() : string|null
Return values
string|nullgetOptions()
public
getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getPadByAlign()
public
getPadByAlign() : int
Return values
intgetTagOptions()
Gets options we need for tag for example fg, bg.
public
getTagOptions() : array<string|int, string>