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

final
__call(string $name, array $arguments)

No description

final
void
_setKey(string $key)

No description

final
string
_getKey()

No description

final
void
_setNext(string|null $key)

No description

final
string|null
_getNext()

No description

final
void
_setPrev(string|null $key)

No description

final
string|null
_getPrev()

No description

final
void
_setParent(Chainset $obj)

No description

final
_getParent()

No description

final
before(string|null $target = null)

Place child just before $target.

final
after(string|null $target = null)

Place child just after $target.

Protected Methods

Private Methods

Details

at line 28
final __call(string $name, array $arguments)

Parameters

string $name
array $arguments

at line 33
final void _setKey(string $key)

Parameters

string $key

Return Value

void

at line 37
final string _getKey()

Return Value

string

at line 41
final void _setNext(string|null $key)

Parameters

string|null $key

Return Value

void

at line 45
final string|null _getNext()

Return Value

string|null

at line 49
final void _setPrev(string|null $key)

Parameters

string|null $key

Return Value

void

at line 53
final string|null _getPrev()

Return Value

string|null

at line 57
final void _setParent(Chainset $obj)

Parameters

Chainset $obj

Return Value

void

at line 61
final Chainset _getParent()

Return Value

Chainset

at line 68
final Child before(string|null $target = null)

Place child just before $target.

Parameters

string|null $target

Return Value

Child

at line 94
final Child after(string|null $target = null)

Place child just after $target.

Parameters

string|null $target

Return Value

Child