public function setLines(string $start, ?string $end = null) : void { $this->contextNode ->setAttribute('start', $start); if ($end !== null) { $this->contextNode ->setAttribute('end', $end); } }