Style
in package
Pdf style class
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor
- create() : Style
- Create style object
- getFont() : string|null
- Get font
- getName() : string|null
- Get name
- getSize() : int|float|null
- Get size
- hasFont() : bool
- Has font
- hasName() : bool
- Has name
- hasSize() : bool
- Has size
- setFont() : Style
- Set font
- setName() : Style
- Set name
- setSize() : Style
- Set size
Properties
$font
Style font
protected
string|null
$font
= null
$name
Style name
protected
string|null
$name
= null
$size
Style size
protected
int|float|null
$size
= null
Methods
__construct()
Constructor
public
__construct(string $name[, string|null $font = null ][, int|float|null $size = null ]) : mixed
Instantiate a PDF style.
Parameters
- $name : string
- $font : string|null = null
- $size : int|float|null = null
create()
Create style object
public
static create(string $name[, string|null $font = null ][, int|float|null $size = null ]) : Style
Parameters
- $name : string
- $font : string|null = null
- $size : int|float|null = null
Return values
StylegetFont()
Get font
public
getFont() : string|null
Return values
string|nullgetName()
Get name
public
getName() : string|null
Return values
string|nullgetSize()
Get size
public
getSize() : int|float|null
Return values
int|float|nullhasFont()
Has font
public
hasFont() : bool
Return values
boolhasName()
Has name
public
hasName() : bool
Return values
boolhasSize()
Has size
public
hasSize() : bool
Return values
boolsetFont()
Set font
public
setFont(string $font) : Style
Parameters
- $font : string
Return values
StylesetName()
Set name
public
setName(string $name) : Style
Parameters
- $name : string
Return values
StylesetSize()
Set size
public
setSize(int|float $size) : Style
Parameters
- $size : int|float