/** * getInstance * Returns (or creates and returns) the single instance of Color * @static * @access public * @return Color */ public static function getInstance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; }