Border
extends AbstractStyle
in package
Border style writer.
Tags
Table of Contents
Properties
- $colors : array<string|int, mixed>
- Colors.
- $parentWriter : RTF
- Parent writer.
- $sizes : array<string|int, mixed>
- Sizes.
- $style : null|array<string|int, mixed>|AbstractStyle
- Style.
Methods
- __construct() : mixed
- Create new instance.
- getParentWriter() : RTF
- Get parent writer.
- getStyle() : null|array<string|int, mixed>|string|AbstractStyle
- Get style.
- setColors() : void
- Set colors.
- setParentWriter() : void
- Set parent writer.
- setSizes() : void
- Set sizes.
- write() : string
- Write style.
- getValueIf() : string
- Get value if .
- writeSide() : string
- Write side.
Properties
$colors
Colors.
private
array<string|int, mixed>
$colors
= []
$parentWriter
Parent writer.
private
RTF
$parentWriter
$sizes
Sizes.
private
array<string|int, mixed>
$sizes
= []
$style
Style.
private
null|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
getParentWriter()
Get parent writer.
public
getParentWriter() : RTF
Return values
RTFgetStyle()
Get style.
public
getStyle() : null|array<string|int, mixed>|string|AbstractStyle
Return values
null|array<string|int, mixed>|string|AbstractStylesetColors()
Set colors.
public
setColors(array<string|int, string> $value) : void
Parameters
- $value : array<string|int, string>
setParentWriter()
Set parent writer.
public
setParentWriter(RTF $writer) : void
Parameters
- $writer : RTF
setSizes()
Set sizes.
public
setSizes(array<string|int, int> $value) : void
Parameters
- $value : array<string|int, int>
write()
Write style.
public
write() : string
Return values
stringgetValueIf()
Get value if .
protected
getValueIf(null|bool $condition, string $value) : string
..
Parameters
- $condition : null|bool
- $value : string
Return values
stringwriteSide()
Write side.
private
writeSide(string $side, int $width[, string $color = '' ]) : string
Parameters
- $side : string
- $width : int
- $color : string = ''