Documentation

TableCellStyle
in package

Tags
author

Yewhen Khoptynskyi khoptynskyi@gmail.com

Table of Contents

DEFAULT_ALIGN  = 'left'
ALIGN_MAP  = ['left' => STR_PAD_RIGHT, 'center' => STR_PAD_BOTH, 'right' => STR_PAD_LEFT]
TAG_OPTIONS  = ['fg', 'bg', 'options']
$options  : mixed
__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

ALIGN_MAP

private mixed ALIGN_MAP = ['left' => STR_PAD_RIGHT, 'center' => STR_PAD_BOTH, 'right' => STR_PAD_LEFT]

Properties

$options

private 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> = []
Return values
mixed

getCellFormat()

public getCellFormat() : string|null
Return values
string|null

getOptions()

public getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPadByAlign()

public getPadByAlign() : int
Return values
int

getTagOptions()

Gets options we need for tag for example fg, bg.

public getTagOptions() : array<string|int, string>
Return values
array<string|int, string>

Search results