/** * Main HEIBApp Instance. * */ public static function getInstance() { // Store the instance locally to avoid private static replication static $instance = null; // Only run these methods if they haven't been run previously if (null === $instance) { $instance = new HEIBApp(); $instance->defineConstants(); $instance->version(); $instance->setupHooks(); } // Always return the instance return $instance; }