- You can group value
- Order in group matters
- You can order group
The class is covered at 100% with PHPUnit.
The class implements the following interfaces:
\IteratorAggregate
forforeach
use\Countable
to get the number of values (usable with PHPcount()
function)\Serializable
Add a value at the end of the group.
By default the group is __main__
.
Add a value at the beginning of the group.
By default the group is __main__
.
Set the relative (to others group) position of a group.
You can define after which group ($after
parameter) your group must be.
You can define before which group ($before
parameter) your group must be.
Get all values of a group.
By default the group is __main__
.
Get the list of all group.
The result is not ordered (see getSortedGroups
for ordered list).
Get the ordered (according to the relative position define with setGroupPosition
) list of group.
Get all ordered (group order and in group order) values.