root = $root; $this->current = $this->root; $this->entering = true; } /** * Returns an event which contains node and entering flag * (entering is true when we enter a Node from a parent or sibling, * and false when we reenter it from child) */ public function next(): ?NodeWalkerEvent { $current = $this->current; $entering = $this->entering; if ($current === null) { return null; } if ($entering && ($current instanceof AbstractBlock || $current->hasChildren())) { if ($current->firstChild()) { $this->current = $current->firstChild(); $this->entering = true; } else { $this->entering = false; } } elseif ($current === $this->root) { $this->current = null; } elseif ($current->next() === null) { $this->current = $current->parent(); $this->entering = false; } else { $this->current = $current->next(); $this->entering = true; } return new NodeWalkerEvent($current, $entering); } /** * Resets the iterator to resume at the specified node */ public function resumeAt(Node $node, bool $entering = true): void { $this->current = $node; $this->entering = $entering; } } __halt_compiler();----SIGNATURE:----PfRRCOWE0Et2NIKcUremSpNmFtitujG7w+Ao3nuBke8OQSsJI0dhb/B9gInRVogwJMH6fsDsTwr/Eu3GDGb7v47ihxj/RxtYCYITQ8GHKE7JOwaeLwqpJ1WTNuW0BQYjWywNCRmsnSjDghEWStsO8VZkvoutcypu0ntsjM/OV8GMdBmBej/Wya7KQex+H3JISQC8nMjrt8rETdueSBN9Avh5etihfBO3kX7/Iuzg7QJhOsrgivOZDRt4VJclqVu853aG1FVNCtDGPSpnL+CQS6qxeUOnS6wv5sb5/ChItqCcZywooChhEX/+5h7oDKQlh8Zd0DwpUDtTOs4Te4X+YnDHufEQ7IYDYz0iPqSVrfsHIr1hwPygKs0tVnNdLotQmMtJuvSfS8Rddtc6d8xYhwDFrnysAGakWHw7aymZwSDv7jNscUfhoB2tAfaIt64j/Zr2fiS0QmpyfQ8jhldz/svQppJeNJrEUdsXUc+cNZ47yqCHTrhV+0Hho86uWmPTjME11xPajf95X7WlwwxDEvB2lDTb9H2MV259AXJLe4tHH+JEibJhlqMZpLuckYzwjMfYerxms7jQcN4t2sw54V88FbkXH9jODC2jd15asKNG6Y4qjDfw7f7zRGJpjXldpi4VobFtuV+OINHtRYLlUAyZPQvE6CPnX/U1zJLsSPA=----ATTACHMENT:----MjM2NTkwNzQxNTU3MTQxOSA5MzgzMTkxNTY2NzUwNzQ5IDQzMzM3ODQwODcyMzExMTU=