You are here

public function Generic::__construct in Googalytics - Google Analytics 8

AnalyticsCommand constructor.

Parameters

string $command: The command name.

array $fields_object: A map of values for the command's fieldsObject parameter.

string $tracker_name: The tracker name (optional).

int $priority: The command priority.

5 calls to Generic::__construct()
AutoLink::__construct in src/AnalyticsCommand/Linker/AutoLink.php
Create constructor.
Create::__construct in src/AnalyticsCommand/Create.php
Create constructor.
RequirePlugin::__construct in src/AnalyticsCommand/RequirePlugin.php
Create constructor.
Send::__construct in src/AnalyticsCommand/Send.php
Send constructor.
Set::__construct in src/AnalyticsCommand/Set.php
Create constructor.
5 methods override Generic::__construct()
AutoLink::__construct in src/AnalyticsCommand/Linker/AutoLink.php
Create constructor.
Create::__construct in src/AnalyticsCommand/Create.php
Create constructor.
RequirePlugin::__construct in src/AnalyticsCommand/RequirePlugin.php
Create constructor.
Send::__construct in src/AnalyticsCommand/Send.php
Send constructor.
Set::__construct in src/AnalyticsCommand/Set.php
Create constructor.

File

src/AnalyticsCommand/Generic.php, line 47

Class

Generic
Class FieldsObject.

Namespace

Drupal\ga\AnalyticsCommand

Code

public function __construct($command, array $fields_object = [], $tracker_name = NULL, $priority = self::DEFAULT_PRIORITY) {
  $this->command = $command;
  $this->fieldsObject = $fields_object;
  $this->trackerName = $tracker_name;
  $this->priority = $priority;
}