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