OptionValue
Table of Contents
-
ALLOWED_TYPE
= ['boolean', 'number', 'string', 'array', 'object']
-
$inherit
: bool
-
$value
: mixed
-
$name
: string
-
$type
: string
-
__construct()
: mixed
-
fromArray()
: OptionValue
-
getValue()
: mixed
-
isInherit()
: bool
-
setInherit()
: self
-
setValue()
: self
-
validateType()
: bool
ALLOWED_TYPE
public
mixed
ALLOWED_TYPE
= ['boolean', 'number', 'string', 'array', 'object']
$inherit
public
bool
$inherit
= true
$value
public
mixed
$value
$name
protected
string
$name
$type
protected
string
$type
__construct()
public
__construct(string $name, string $type, mixed $value[, bool $inherit = true ]) : mixed
Parameters
-
$name
: string
-
-
$type
: string
-
-
$value
: mixed
-
-
$inherit
: bool
= true
-
Return values
mixed
—
fromArray()
public
static fromArray(array<string|int, mixed> $data) : OptionValue
Parameters
-
$data
: array<string|int, mixed>
-
Return values
OptionValue
—
getValue()
public
getValue() : mixed
Return values
mixed
—
isInherit()
public
isInherit() : bool
Return values
bool
—
setInherit()
public
setInherit(bool $inherit) : self
Parameters
-
$inherit
: bool
-
Return values
self
—
setValue()
public
setValue(mixed $value) : self
Parameters
-
$value
: mixed
-
Return values
self
—
validateType()
private
validateType(string $type, mixed $value) : bool
Parameters
-
$type
: string
-
-
$value
: mixed
-
Return values
bool
—