32 parent::__construct();
43 $this->uasort([$this,
'nodeCompare']);
57 return $node->compareTo($otherNode);
79 if ($arrayRepresentation[
'serializeClassName'] !== static::class) {
80 throw new \TYPO3\CMS\Core\Exception(
'Deserialized object type is not identical!', 1294586647);
92 $arrayRepresentation = [
93 'serializeClassName' => static::class
95 $iterator = $this->getIterator();
96 while ($iterator->valid()) {
97 $arrayRepresentation[] = $iterator->current()->toArray();
100 return $arrayRepresentation;
110 unset($data[
'serializeClassName']);
111 foreach ($data as $index => $nodeArray) {
112 $node = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($nodeArray[
'serializeClassName'], $nodeArray);
113 $this->offsetSet($index, $node);