Ratio
Table of Contents
Properties
-
$id
: string
-
$title
: string
-
$value
: float
Methods
-
__construct()
: mixed
-
asArray()
: array<string|int, mixed>
-
createMultipleFromConfiguration()
: array<string|int, Ratio>
-
getId()
: string
-
getRatioValue()
: float
-
isFree()
: bool
$id
protected
string
$id
$title
protected
string
$title
$value
protected
float
$value
__construct()
public
__construct(string $id, string $title, float $value) : mixed
Parameters
-
$id
: string
-
-
$title
: string
-
-
$value
: float
-
asArray()
public
asArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
createMultipleFromConfiguration()
public
static createMultipleFromConfiguration(array<string|int, mixed> $config) : array<string|int, Ratio>
Parameters
-
$config
: array<string|int, mixed>
-
-
throws
-
InvalidConfigurationException
Return values
array<string|int, Ratio>
getId()
public
getId() : string
getRatioValue()
public
getRatioValue() : float
isFree()
public
isFree() : bool