public function __get($name) { $name = strtolower($name); return array_key_exists($name, $this->colors) ? $this->colors[$name] : null; }