'lt1', self::COLOR_TX1 => 'dk1', self::COLOR_BG2 => 'lt2', self::COLOR_TX2 => 'dk2', self::COLOR_ACCENT1 => 'accent1', self::COLOR_ACCENT2 => 'accent2', self::COLOR_ACCENT3 => 'accent3', self::COLOR_ACCENT4 => 'accent4', self::COLOR_ACCENT5 => 'accent5', self::COLOR_ACCENT6 => 'accent6', self::COLOR_HLINK => 'hlink', self::COLOR_FOLHLINK => 'folHlink' ); /** * ColorMap constructor. * Create a new ColorMap with standard values */ public function __construct() { $this->mapping = self::$mappingDefault; } /** * Change the color of one of the elements in the map * * @param string $item * @param string $newThemeColor * @return ColorMap */ public function changeColor($item, $newThemeColor) { $this->mapping[$item] = $newThemeColor; return $this; } /** * Store a new map. For use with the reader * * @param array $arrayMapping * @return ColorMap */ public function setMapping(array $arrayMapping = array()) { $this->mapping = $arrayMapping; return $this; } /** * Get the whole mapping as an array * * @return array */ public function getMapping() { return $this->mapping; } }