AirLay backend

OptionValue
in package

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

Constants

ALLOWED_TYPE

public mixed ALLOWED_TYPE = ['boolean', 'number', 'string', 'array', 'object']

Properties

Methods

__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

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

Search results