public static function instance() { if (!isset(self::$singleton)) { self::$singleton = new UserFactory(); } return self::$singleton; }