Indentation
extends AbstractStyle
in package
RTF indentation style writer.
Tags
Table of Contents
Properties
- $parentWriter : RTF
- Parent writer.
- $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.
- setParentWriter() : void
- Set parent writer.
- write() : string
- Write style.
- getValueIf() : string
- Get value if .
Properties
$parentWriter
Parent writer.
private
RTF
$parentWriter
$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|AbstractStylesetParentWriter()
Set parent writer.
public
setParentWriter(RTF $writer) : void
Parameters
- $writer : RTF
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