\Google\AdsApi\CommonConfiguration

Holds and helps retrieve configuration data loaded from an *.ini file.

Summary

Methods
Properties
Constants
__construct()
getConfiguration()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$config
N/A

Properties

$config

$config :

Type

Methods

__construct()

__construct(array  $iniFileContents)

Creates a new configuration from the specified associative array of settings loaded from an *.ini file.

Parameters

array $iniFileContents

an associative array of settings

getConfiguration()

getConfiguration(string  $name,string  $section = null): string|null

Gets the value for the specified setting name.

Parameters

string $name

the setting name

string $section

optional, the name of the section containing the setting

Returns

string|null —

the value of the setting, or null if it doesn't exist