public function getDefault($enableTzCache = true): Interfaces\JavaObject
    {
        $enableCache = $enableTzCache && self::$enableTzCache;
        if (!$enableCache || self::$defaultTz === null) {
            self::$defaultTz = $this->timeZoneClass->getDefault();
        }

        return self::$defaultTz;
    }
public function getDefault($enableTzCache = true): Interfaces\JavaObject
    {
        $enableCache = $enableTzCache && self::$enableTzCache;
        if (!$enableCache || self::$defaultTz === null) {
            self::$defaultTz = $this->timeZoneClass->getDefault();
        }

        return self::$defaultTz;
    }
public function getDefault ( $ enableTzCache = true ) : Interfaces \ JavaObject { $ enableCache = $ enableTzCache && self :: $ enableTzCache ; if ( ! $ enableCache || self :: $ defaultTz === null ) { self :: $ defaultTz = $ this -> timeZoneClass -> getDefault ( ) ; } return self :: $ defaultTz ; }
Return default jvm TimeZone.

If TimeZone::enableTzCache() is active (by default),
the default JVM timezone object will be locally cached on the
PHP side for performance reasons.

The behaviour could potentially lead to unexpected results if
your code modify the default JVM timezone during execution.
(i.e. by calling java.util.TimeZone::setDefault() in your code).

If you don't want to rely on automatic timezone caching, you can
disable it at bootstrap (Soluble\Japha\Util\TimeZone::disableTzCache)
or simply call this method with $enableTzCache=false


@param bool $enableTzCache enable local caching of default timezone

@return Interfaces\JavaObject Java('java.util.TimeZone')
Return default jvm TimeZone .