lib/Elastica/Cluster/Settings.php
public function getTransient(string $setting = '')
    {
        $data = $this->get();
        $settings = $data['transient'];

        if ('' !== $setting) {
            if (isset($settings[$setting])) {
                return $settings[$setting];
            }

            if (false !== \strpos($setting, '.')) {
                // convert dot notation to nested arrays
                $keys = \explode('.', $setting);
                foreach ($keys as $key) {
                    if (isset($settings[$key])) {
                        $settings = $settings[$key];
                    } else {
                        return null;
                    }
                }

                return $settings;
            }

            return null;
        }

        return $settings;
    }
public function getTransient(string $setting = '')
    {
        $data = $this->get();
        $settings = $data['transient'];

        if ('' !== $setting) {
            if (isset($settings[$setting])) {
                return $settings[$setting];
            }

            if (false !== \strpos($setting, '.')) {
                // convert dot notation to nested arrays
                $keys = \explode('.', $setting);
                foreach ($keys as $key) {
                    if (isset($settings[$key])) {
                        $settings = $settings[$key];
                    } else {
                        return null;
                    }
                }

                return $settings;
            }

            return null;
        }

        return $settings;
    }
public function getTransient ( string $ setting = '' ) { $ data = $ this -> get ( ) ; $ settings = $ data [ 'transient' ] ; if ( '' !== $ setting ) { if ( isset ( $ settings [ $ setting ] ) ) { return $ settings [ $ setting ] ; } if ( false !== \ strpos ( $ setting , '.' ) ) { // convert dot notation to nested arrays $ keys = \ explode ( '.' , $ setting ) ; foreach ( $ keys as $ key ) { if ( isset ( $ settings [ $ key ] ) ) { $ settings = $ settings [ $ key ] ; } else { return null ; } } return $ settings ; } return null ; } return $ settings ; }
Returns the current transient settings of the cluster.

If param is set, only specified setting is return.

@param string $setting OPTIONAL Setting name to return

@return array|string|null Settings data
Returns the current transient settings of the cluster .