public function Set::__construct in Googalytics - Google Analytics 8
Create constructor.
Parameters
string $setting_key: The setting key.
mixed $value: The setting value.
array $fields_object: A set of additional options for the command.
string $tracker_name: The tracker name.
int $priority: The command priority.
Overrides Generic::__construct
2 calls to Set::__construct()
- Dimension::__construct in src/
AnalyticsCommand/ Dimension.php - Dimension constructor.
- Metric::__construct in src/
AnalyticsCommand/ Metric.php - Dimension constructor.
2 methods override Set::__construct()
- Dimension::__construct in src/
AnalyticsCommand/ Dimension.php - Dimension constructor.
- Metric::__construct in src/
AnalyticsCommand/ Metric.php - Dimension constructor.
File
- src/
AnalyticsCommand/ Set.php, line 40
Class
- Set
- Class Set.
Namespace
Drupal\ga\AnalyticsCommandCode
public function __construct($setting_key, $value, array $fields_object = [], $tracker_name = NULL, $priority = self::DEFAULT_PRIORITY) {
parent::__construct('set', $fields_object, $tracker_name, $priority);
$this->settingKey = $setting_key;
$this->settingValue = $value;
}