public function get($setting = null)
    {
        if (is_null($setting)) {
            return $this->_settings;
        }

        if (!isset($this->_settings[$setting])) {
            return null;
        }

        return $this->_settings[$setting];
    }
public function get($setting = null)
    {
        if (is_null($setting)) {
            return $this->_settings;
        }

        if (!isset($this->_settings[$setting])) {
            return null;
        }

        return $this->_settings[$setting];
    }
public function get ( $ setting = null ) { if ( is_null ( $ setting ) ) { return $ this -> _settings ; } if ( ! isset ( $ this -> _settings [ $ setting ] ) ) { return null ; } return $ this -> _settings [ $ setting ] ; }
Accessor to the a setting by name. If no setting is provided all the
settings of this `Field` instance are returned.

@param string $setting (optional)
the name of the setting to access the value for. This is optional and
defaults to null in which case all settings are returned.
@return null|mixed|array
the value of the setting if there is one, all settings if the input setting
was omitted or null if the setting was supplied but there is no value
for that setting.
Accessor to the a setting by name . If no setting is provided all the settings of this Field instance are returned .