You are here

public function AnalyticsService::__construct in Analytics 7

File

lib/AnalyticsService.php, line 13

Class

AnalyticsService

Code

public function __construct(array $data) {
  foreach ($data as $key => $value) {
    $this->{$key} = $value;
  }
  $this->options += $this
    ->defaultConfiguration();
}