Border extends AbstractStyle
Border style writer
Tags
Table of Contents
- $colors : array<string|int, mixed>
- Colors
- $parentWriter : AbstractWriter
- Parent writer
- $sizes : array<string|int, mixed>
- Sizes
- $style : array<string|int, mixed>|AbstractStyle
- Style
- __construct() : mixed
- Create new instance
- getParentWriter() : AbstractWriter
- Get parent writer
- getStyle() : array<string|int, mixed>|AbstractStyle
- Get style
- setColors() : mixed
- Set colors.
- setParentWriter() : mixed
- Set parent writer.
- setSizes() : mixed
- Set sizes.
- write() : string
- Write style
- assembleCss() : string
- Takes array where of CSS properties / values and converts to CSS string
- getValueIf() : string
- Get value if .
- writeSide() : string
- Write side
Properties
$colors
Colors
private
array<string|int, mixed>
$colors
= array()
$parentWriter
Parent writer
private
AbstractWriter
$parentWriter
$sizes
Sizes
private
array<string|int, mixed>
$sizes
= array()
$style
Style
private
array<string|int, mixed>|AbstractStyle
$style
Methods
__construct()
Create new instance
public
__construct([array<string|int, mixed>|AbstractStyle $style = null ]) : mixed
Parameters
- $style : array<string|int, mixed>|AbstractStyle = null
Return values
mixed —getParentWriter()
Get parent writer
public
getParentWriter() : AbstractWriter
Return values
AbstractWriter —getStyle()
Get style
public
getStyle() : array<string|int, mixed>|AbstractStyle
Return values
array<string|int, mixed>|AbstractStyle —$style
setColors()
Set colors.
public
setColors(array<string|int, string> $value) : mixed
Parameters
- $value : array<string|int, string>
Return values
mixed —setParentWriter()
Set parent writer.
public
setParentWriter(AbstractWriter $writer) : mixed
Parameters
- $writer : AbstractWriter
Return values
mixed —setSizes()
Set sizes.
public
setSizes(array<string|int, int> $value) : mixed
Parameters
- $value : array<string|int, int>
Return values
mixed —write()
Write style
public
write() : string
Return values
string —assembleCss()
Takes array where of CSS properties / values and converts to CSS string
protected
assembleCss(array<string|int, mixed> $css) : string
Parameters
- $css : array<string|int, mixed>
Return values
string —getValueIf()
Get value if .
protected
getValueIf(bool|null $condition, string $value) : string
..
Parameters
- $condition : bool|null
- $value : string
Return values
string —writeSide()
Write side
private
writeSide(string $side, int $width[, string $color = '' ]) : string
Parameters
- $side : string
- $width : int
- $color : string = ''