TextStyle
in package
Table of Contents
Properties
- $bodyStyle : array<int, Paragraph>
- $otherStyle : array<int, Paragraph>
- $titleStyle : array<int, Paragraph>
Methods
- __construct() : mixed
- TextStyle constructor.
- getBodyStyle() : array<int, Paragraph>
- getBodyStyleAtLvl() : Paragraph|null
- getOtherStyle() : array<int, Paragraph>
- getOtherStyleAtLvl() : Paragraph|null
- getTitleStyle() : array<int, Paragraph>
- getTitleStyleAtLvl() : Paragraph|null
- setBodyStyleAtLvl() : self
- setOtherStyleAtLvl() : self
- setTitleStyleAtLvl() : self
- checkLvl() : bool
Properties
$bodyStyle
protected
array<int, Paragraph>
$bodyStyle
= []
$otherStyle
protected
array<int, Paragraph>
$otherStyle
= []
$titleStyle
protected
array<int, Paragraph>
$titleStyle
= []
Methods
__construct()
TextStyle constructor.
public
__construct([bool $default = true ]) : mixed
Parameters
- $default : bool = true
getBodyStyle()
public
getBodyStyle() : array<int, Paragraph>
Return values
array<int, Paragraph>getBodyStyleAtLvl()
public
getBodyStyleAtLvl(int|null $lvl) : Paragraph|null
Parameters
- $lvl : int|null
Return values
Paragraph|nullgetOtherStyle()
public
getOtherStyle() : array<int, Paragraph>
Return values
array<int, Paragraph>getOtherStyleAtLvl()
public
getOtherStyleAtLvl(int|null $lvl) : Paragraph|null
Parameters
- $lvl : int|null
Return values
Paragraph|nullgetTitleStyle()
public
getTitleStyle() : array<int, Paragraph>
Return values
array<int, Paragraph>getTitleStyleAtLvl()
public
getTitleStyleAtLvl(int|null $lvl) : Paragraph|null
Parameters
- $lvl : int|null
Return values
Paragraph|nullsetBodyStyleAtLvl()
public
setBodyStyleAtLvl(Paragraph $style, int|null $lvl) : self
Parameters
- $style : Paragraph
- $lvl : int|null
Return values
selfsetOtherStyleAtLvl()
public
setOtherStyleAtLvl(Paragraph $style, int|null $lvl) : self
Parameters
- $style : Paragraph
- $lvl : int|null
Return values
selfsetTitleStyleAtLvl()
public
setTitleStyleAtLvl(Paragraph $style, int|null $lvl) : self
Parameters
- $style : Paragraph
- $lvl : int|null
Return values
selfcheckLvl()
private
checkLvl(int|null $lvl) : bool
Parameters
- $lvl : int|null