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

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

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

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

        return $settings;
    }
public function getPersistent ( string $ setting = '' ) { $ data = $ this -> get ( ) ; $ settings = $ data [ 'persistent' ] ; if ( '' !== $ setting ) { return $ settings [ $ setting ] ?? null ; } return $ settings ; }
Returns the current persistent 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 persistent settings of the cluster .