Exemple #1
0
 /**
  * Get background
  *
  * @return string
  */
 public function getBgColor()
 {
     if ($this->shading !== null) {
         return $this->shading->getFill();
     } else {
         return null;
     }
 }
Exemple #2
0
 /**
  * Set shading
  *
  * @param array $value
  * @return self
  */
 public function setShading($value = null)
 {
     if (is_array($value)) {
         if (!$this->shading instanceof Shading) {
             $this->shading = new Shading();
         }
         $this->shading->setStyleByArray($value);
     } else {
         $this->shading = null;
     }
     return $this;
 }