_parentWriter = $pWriter; } public function getParentWriter() { if (!is_null($this->_parentWriter)) { return $this->_parentWriter; } else { throw new Exception("No parent PHPWord_Writer_IWriter assigned."); } } }