Sulu\Bundle\GeneratorBundle\Manipulator\Manipulator::next PHP Method

next() protected method

Gets the next token.
protected next ( )
    protected function next()
    {
        while ($token = array_shift($this->tokens)) {
            $this->line += substr_count($this->value($token), "\n");
            if (is_array($token) && in_array($token[0], [T_WHITESPACE, T_COMMENT, T_DOC_COMMENT])) {
                continue;
            }
            return $token;
        }
    }