public function goToNextTagWhichIsNot(array $tags) { $this->next(); $token = $this->current(); while ($token !== null && in_array($token->getTag(), $tags) === true) { $this->next(); $token = $this->current(); } return $this; }