/** * ============================================================= * REMOVE ALL DATA * ============================================================= * * -- CODE: ---------------------------------------------------- * * Config::reset(); * * ------------------------------------------------------------- * */ public static function reset() { self::$bucket = array(); return new static(); }
/** * ============================================================= * REMOVE CONFIGURATION DATA BY ITS KEY * ============================================================= * * -- CODE: ---------------------------------------------------- * * Config::reset(); * * ------------------------------------------------------------- * * Config::reset('foo'); * * ------------------------------------------------------------- * */ public static function reset($key = null) { if (!is_null($key)) { Mecha::UVR(self::$bucket, $key); } else { self::$bucket = array(); } return new static(); }