*/ protected $mapping = []; /** * @var array */ public static $mappingDefault = [ self::COLOR_BG1 => '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. */ public function changeColor(string $item, string $newThemeColor): self { $this->mapping[$item] = $newThemeColor; return $this; } /** * Store a new map. For use with the reader. * * @param array $arrayMapping */ public function setMapping(array $arrayMapping = []): self { $this->mapping = $arrayMapping; return $this; } /** * Get the whole mapping as an array. * * @return array */ public function getMapping(): array { return $this->mapping; } }