Chainset
class Chainset implements Iterator
Chainset object is funny method to configure things.
Chainset has one parent and many children. We can crate and access children just like they were properties of parent. We can set properties of children using function-call syntax.
Example:
// create chainset with parent 'columns', child 'name' with
// properties value = 'Ondrej' and bg = '#555', and
// child 'modified' with property timestamp = 'now'
$columns = new Chainset;
$columns->name->value('Ondrej')->bg('#555');
$columns->modified->timestamp('now');
Properties
protected | $childClass | ||
private | $position | ||
private | $first | ||
private | $last | ||
private | $children |
Public Methods
Protected Methods
Private Methods
Details
at line 30
__construct($childClass = null)
at line 36
__isset($key)
at line 43
final void
cutChild(string $key)
Remove child from linked list.