Ejemplo n.º 1
0
 /**
  * Set End Color
  *
  * @param	PHPExcel_Style_Color $pValue
  * @throws	Exception
  * @return PHPExcel_Style_Fill
  */
 public function setEndColor(PHPExcel_Style_Color $pValue = null)
 {
     // make sure parameter is a real color and not a supervisor
     $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
     if ($this->_isSupervisor) {
         $styleArray = $this->getEndColor()->getStyleArray(array('argb' => $color->getARGB()));
         $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
     } else {
         $this->_endColor = $color;
     }
     return $this;
 }