/** * The function used to initially set the instance * * @param PPI_Helper $instance * @throws PPI_Exception * @return void */ static function setInstance(PPI_Helper $instance) { if (self::$_instance !== null) { throw new PPI_Exception('PPI_Helper is already initialised'); } self::$_instance = $instance; }