public static function getIns() { if (!self::$ins) { $className = get_called_class(); self::$ins = new $className(); } return self::$ins; }