Documentation

Paragraph extends AbstractStyle

Paragraph style HTML writer

Tags
since
0.10.0

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()  : mixed
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

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

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

Search results