public function __construct($string) { $this->line = 0; $this->strings = explode("\n", $string); $this->total = count($this->strings); }