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