public function getCurrentLine($position = self::CURRENT_POSITION)
    {
        if (self::CURRENT_POSITION === $position) {
            $position = $this->position;
        }

        $offset = $this->getLastEol($position);
        $length = $this->getNextEol($position) - $offset;
        return substr($this->data, $offset, $length);
    }
public function getCurrentLine($position = self::CURRENT_POSITION)
    {
        if (self::CURRENT_POSITION === $position) {
            $position = $this->position;
        }

        $offset = $this->getLastEol($position);
        $length = $this->getNextEol($position) - $offset;
        return substr($this->data, $offset, $length);
    }
public function getCurrentLine ( $ position = self :: CURRENT_POSITION ) { if ( self :: CURRENT_POSITION === $ position ) { $ position = $ this -> position ; } $ offset = $ this -> getLastEol ( $ position ) ; $ length = $ this -> getNextEol ( $ position ) - $ offset ; return substr ( $ this -> data , $ offset , $ length ) ; }
Get the current line.

@param int $position
@return string
Get the current line .