Child
class Child
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
private | $parent | ||
private | $next | ||
private | $prev | ||
private | $key |
Public Methods
Protected Methods
Private Methods
Details
at line 28
final
__call(string $name, array $arguments)
at line 33
final void
_setKey(string $key)
at line 37
final string
_getKey()
at line 41
final void
_setNext(string|null $key)
at line 45
final string|null
_getNext()
at line 49
final void
_setPrev(string|null $key)
at line 53
final string|null
_getPrev()
at line 57
final void
_setParent(Chainset $obj)
at line 61
final Chainset
_getParent()
at line 68
final Child
before(string|null $target = null)
Place child just before $target.
at line 94
final Child
after(string|null $target = null)
Place child just after $target.