classes/PhpSourceStream.php
public function setHead($head)
    {
        if ($head < 0) {
            return false;
        }

        if ($head > (count($this->tokens) - 1)) {
            return false;
        }

        $this->head = $head;
        return true;
    }
public function setHead($head)
    {
        if ($head < 0) {
            return false;
        }

        if ($head > (count($this->tokens) - 1)) {
            return false;
        }

        $this->head = $head;
        return true;
    }
public function setHead ( $ head ) { if ( $ head < 0 ) { return false ; } if ( $ head > ( count ( $ this -> tokens ) - 1 ) ) { return false ; } $ this -> head = $ head ; return true ; }
Updates the head position.
@return boolean Returns true if the head was successfully updated. Returns false otherwise.
Updates the head position .