Listener called every time the scanner reset its state using the given array
array $state State:
void
public function onScannerResetState(&$state) { //Reset the last token index and delete it from the state array $this->lastTokenIndex = $state["commentsLastTokenIndex"]; unset($state["commentsLastTokenIndex"]); }