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