/** * Get the singleton instance of this class */ public static function getInstance() { if (!is_object(self::$instance)) { self::$instance = new UniqueIDGenerator(); } return self::$instance; }