AbstractDescriptor
in package
AbstractYes
Object descriptior
Table of Contents
Properties
- $collections : array<string|int, mixed>
- Property collections
- $properties : Properties
- Properties collection
Methods
- __construct() : mixed
- Constructor
- collection() : Properties|null
- Get collection properties
- get() : null|Property|Properties
- Get property
- getValue() : mixed
- Get property value
- getValues() : array<string|int, mixed>
- Get properties values
- set() : self
- Set property value
- toArray() : array<string|int, mixed>
- Convert to array
- createCollection() : Properties
- Create collection properties
- definition() : void
- Properties descriptor in child class
- property() : Properties
- Create property
Properties
$collections
Property collections
private
array<string|int, mixed>
$collections
$properties
Properties collection
private
Properties
$properties
Methods
__construct()
Constructor
public
__construct() : mixed
collection()
Get collection properties
public
collection(string $name) : Properties|null
Parameters
- $name : string
Return values
Properties|nullget()
Get property
public
get(string $name) : null|Property|Properties
Parameters
- $name : string
Return values
null|Property|PropertiesgetValue()
Get property value
public
getValue(string $name) : mixed
Parameters
- $name : string
getValues()
Get properties values
public
getValues() : array<string|int, mixed>
Return values
array<string|int, mixed>set()
Set property value
public
set(string $name, mixed $value) : self
Parameters
- $name : string
- $value : mixed
Return values
selftoArray()
Convert to array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>createCollection()
Create collection properties
protected
createCollection(string $name) : Properties
Parameters
- $name : string
Return values
Propertiesdefinition()
Properties descriptor in child class
protected
abstract definition() : void
property()
Create property
protected
property(string $name, array<string|int, mixed>|object|string|callable $descriptor) : Properties
Parameters
- $name : string
- $descriptor : array<string|int, mixed>|object|string|callable