escaper = new Rtf(); } /** * @return string */ abstract public function write(); /** * @param \PhpOffice\PhpWord\Writer\RTF $writer */ public function setParentWriter(?AbstractWriter $writer = null): void { $this->parentWriter = $writer; } /** * @return \PhpOffice\PhpWord\Writer\RTF */ public function getParentWriter() { if ($this->parentWriter !== null) { return $this->parentWriter; } throw new Exception('No parent WriterInterface assigned.'); } }