/** * Sets the cell's font color * * @param string|integer $color either a string (like 'blue'), or an integer (range is [8...63]). * * @return Font */ public function setColor($color) { $this->color = Palette::getColor($color); return $this; }
/** * Sets the cell's background color * * @param string|integer $color either a string (like 'blue'), or an integer (range is [8...63]). */ public function setBgColor($color) { $this->bgColor = Palette::getColor($color); if ($this->pattern == Fill::PATTERN_NONE) { $this->setPattern(Fill::PATTERN_SOLID); } }