Table of Contents
-
$attributes
: array<string|int, Attribute>
-
$instance
: self|null
-
__construct()
: mixed
-
get()
: Attribute|null
-
getInstance()
: self
-
mustGet()
: Attribute
-
register()
: Attribute
-
reset()
: void
-
setInstance()
: void
-
make()
: self
$attributes
private
array<string|int, Attribute>
$attributes
= []
$instance
private
static self|null
$instance
= null
__construct()
public
__construct() : mixed
Return values
mixed
—
get()
public
get(string $id) : Attribute|null
Parameters
-
$id
: string
-
Return values
Attribute|null
—
getInstance()
public
static getInstance() : self
Return values
self
—
mustGet()
public
mustGet(string $id) : Attribute
Parameters
-
$id
: string
-
Return values
Attribute
—
register()
public
register(string $id, float $minValue, float $maxValue, float $defaultValue[, bool $shouldSend = true ]) : Attribute
Parameters
-
$id
: string
-
-
$minValue
: float
-
-
$maxValue
: float
-
-
$defaultValue
: float
-
-
$shouldSend
: bool
= true
-
-
throws
-
InvalidArgumentException
Return values
Attribute
—
reset()
public
static reset() : void
Return values
void
—
setInstance()
public
static setInstance(self $instance) : void
Parameters
-
$instance
: self
-
Return values
void
—
make()
private
static make() : self
Return values
self
—