/** * Gets the unique class instance * * This method is used to get the unique instance of the class * (singleton). If no instance is available, it will create it. * * @return Woops_Core_Env_Getter The unique instance of the class * @see __construct */ public static function getInstance() { // Checks if the unique instance already exists if (!is_object(self::$_instance)) { // Creates the unique instance self::$_instance = new self(); // Gets the module manager instance self::$_instance->_modManager = Woops_Core_Module_Manager::getInstance(); } // Returns the unique instance return self::$_instance; }