public function getSettingsKey(): string
    {
        $key = $this->settingsKey;

        if (empty($this->$key)) {
            throw new Exception("No settings key is set on the constructor");
        }

        return $this->$key;
    }
public function getSettingsKey(): string
    {
        $key = $this->settingsKey;

        if (empty($this->$key)) {
            throw new Exception("No settings key is set on the constructor");
        }

        return $this->$key;
    }
public function getSettingsKey ( ) : string { $ key = $ this -> settingsKey ; if ( empty ( $ this -> $ key ) ) { throw new Exception ( "No settings key is set on the constructor" ) ; } return $ this -> $ key ; }
get the current setting id

@return string
get the current setting id