/** * Get background * * @return string */ public function getBgColor() { if ($this->shading !== null) { return $this->shading->getFill(); } else { return null; } }
/** * 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; }