Run
extends TextElement
in package
implements
ITextElement
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- Create a new Run instance.
- getFont() : Font|null
- Get font.
- getFontOrThrow() : Font
- getHashCode() : string
- Get hash code.
- getText() : string
- Get text.
- setFont() : $this
- Set font.
- setText() : $this
- Set text.
Properties
$font
Font.
private
Font|null
$font
$text
Text.
private
string
$text
Methods
__construct()
Create a new Run instance.
public
__construct([string $text = '' ]) : mixed
Parameters
- $text : string = ''
-
Text
getFont()
Get font.
public
getFont() : Font|null
Return values
Font|nullgetFontOrThrow()
public
getFontOrThrow() : Font
Return values
FontgetHashCode()
Get hash code.
public
getHashCode() : string
Return values
string —Hash code
getText()
Get text.
public
getText() : string
Return values
string —Text
setFont()
Set font.
public
setFont([Font|null $font = null ]) : $this
Parameters
- $font : Font|null = null
-
Font
Return values
$thissetText()
Set text.
public
setText(string $text) : $this
Parameters
- $text : string
-
Text