Indentation extends AbstractStyle
RTF indentation style writer.
Tags
Table of Contents
- $parentWriter : AbstractWriter
- Parent writer.
- $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.
- setParentWriter() : void
- Set parent writer.
- write() : string
- Write style.
- assembleCss() : string
- Takes array where of CSS properties / values and converts to CSS string.
- getValueIf() : string
- Get value if .
Properties
$parentWriter
Parent writer.
private
AbstractWriter
$parentWriter
$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
setParentWriter()
Set parent writer.
public
setParentWriter(AbstractWriter $writer) : void
Parameters
- $writer : AbstractWriter
Return values
void —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(null|bool $condition, string $value) : string
..
Parameters
- $condition : null|bool
- $value : string