/** * Method to clear all the instances. * * @return void */ public static function clearInstances() { self::$instances = null; }