public function getLine() { return $this->offset ? substr_count(substr($this->input, 0, $this->offset - 1), "\n") + 1 : 1; }