src/Google/AdsApi/Common/Configuration.php
public function getConfiguration($name, $section = null)
    {
        $configValue = null;

        if ($section === null) {
            if (array_key_exists($name, $this->config)) {
                $configValue = $this->config[$name];
            }
        } else {
            if (array_key_exists($section, $this->config)) {
                $sectionSettings = $this->config[$section];
                if (array_key_exists($name, $sectionSettings)) {
                    $configValue = $sectionSettings[$name];
                }
            }
        }

        return $configValue;
    }
public function getConfiguration($name, $section = null)
    {
        $configValue = null;

        if ($section === null) {
            if (array_key_exists($name, $this->config)) {
                $configValue = $this->config[$name];
            }
        } else {
            if (array_key_exists($section, $this->config)) {
                $sectionSettings = $this->config[$section];
                if (array_key_exists($name, $sectionSettings)) {
                    $configValue = $sectionSettings[$name];
                }
            }
        }

        return $configValue;
    }
public function getConfiguration ( $ name , $ section = null ) { $ configValue = null ; if ( $ section === null ) { if ( array_key_exists ( $ name , $ this -> config ) ) { $ configValue = $ this -> config [ $ name ] ; } } else { if ( array_key_exists ( $ section , $ this -> config ) ) { $ sectionSettings = $ this -> config [ $ section ] ; if ( array_key_exists ( $ name , $ sectionSettings ) ) { $ configValue = $ sectionSettings [ $ name ] ; } } } return $ configValue ; }
Gets the value for the specified setting name.

@param string $name the setting name
@param string $section optional, the name of the section containing the
setting
@return string|null the value of the setting, or null if it doesn't exist
Gets the value for the specified setting name .