/** * Get forecasting object of current year * @return forecasting */ private function getForecastingObject() { if (is_null(self::$forecasting)) { $fc = new forecasting(); $fc->calcForecastLevelling(); self::$forecasting = $fc; } return self::$forecasting; }