1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Analytics;
19
20class Experiment extends \Google\Collection
21{
22  protected $collection_key = 'variations';
23  /**
24   * @var string
25   */
26  public $accountId;
27  /**
28   * @var string
29   */
30  public $created;
31  /**
32   * @var string
33   */
34  public $description;
35  /**
36   * @var bool
37   */
38  public $editableInGaUi;
39  /**
40   * @var string
41   */
42  public $endTime;
43  /**
44   * @var bool
45   */
46  public $equalWeighting;
47  /**
48   * @var string
49   */
50  public $id;
51  /**
52   * @var string
53   */
54  public $internalWebPropertyId;
55  /**
56   * @var string
57   */
58  public $kind;
59  /**
60   * @var int
61   */
62  public $minimumExperimentLengthInDays;
63  /**
64   * @var string
65   */
66  public $name;
67  /**
68   * @var string
69   */
70  public $objectiveMetric;
71  /**
72   * @var string
73   */
74  public $optimizationType;
75  protected $parentLinkType = ExperimentParentLink::class;
76  protected $parentLinkDataType = '';
77  /**
78   * @var string
79   */
80  public $profileId;
81  /**
82   * @var string
83   */
84  public $reasonExperimentEnded;
85  /**
86   * @var bool
87   */
88  public $rewriteVariationUrlsAsOriginal;
89  /**
90   * @var string
91   */
92  public $selfLink;
93  /**
94   * @var string
95   */
96  public $servingFramework;
97  /**
98   * @var string
99   */
100  public $snippet;
101  /**
102   * @var string
103   */
104  public $startTime;
105  /**
106   * @var string
107   */
108  public $status;
109  public $trafficCoverage;
110  /**
111   * @var string
112   */
113  public $updated;
114  protected $variationsType = ExperimentVariations::class;
115  protected $variationsDataType = 'array';
116  /**
117   * @var string
118   */
119  public $webPropertyId;
120  public $winnerConfidenceLevel;
121  /**
122   * @var bool
123   */
124  public $winnerFound;
125
126  /**
127   * @param string
128   */
129  public function setAccountId($accountId)
130  {
131    $this->accountId = $accountId;
132  }
133  /**
134   * @return string
135   */
136  public function getAccountId()
137  {
138    return $this->accountId;
139  }
140  /**
141   * @param string
142   */
143  public function setCreated($created)
144  {
145    $this->created = $created;
146  }
147  /**
148   * @return string
149   */
150  public function getCreated()
151  {
152    return $this->created;
153  }
154  /**
155   * @param string
156   */
157  public function setDescription($description)
158  {
159    $this->description = $description;
160  }
161  /**
162   * @return string
163   */
164  public function getDescription()
165  {
166    return $this->description;
167  }
168  /**
169   * @param bool
170   */
171  public function setEditableInGaUi($editableInGaUi)
172  {
173    $this->editableInGaUi = $editableInGaUi;
174  }
175  /**
176   * @return bool
177   */
178  public function getEditableInGaUi()
179  {
180    return $this->editableInGaUi;
181  }
182  /**
183   * @param string
184   */
185  public function setEndTime($endTime)
186  {
187    $this->endTime = $endTime;
188  }
189  /**
190   * @return string
191   */
192  public function getEndTime()
193  {
194    return $this->endTime;
195  }
196  /**
197   * @param bool
198   */
199  public function setEqualWeighting($equalWeighting)
200  {
201    $this->equalWeighting = $equalWeighting;
202  }
203  /**
204   * @return bool
205   */
206  public function getEqualWeighting()
207  {
208    return $this->equalWeighting;
209  }
210  /**
211   * @param string
212   */
213  public function setId($id)
214  {
215    $this->id = $id;
216  }
217  /**
218   * @return string
219   */
220  public function getId()
221  {
222    return $this->id;
223  }
224  /**
225   * @param string
226   */
227  public function setInternalWebPropertyId($internalWebPropertyId)
228  {
229    $this->internalWebPropertyId = $internalWebPropertyId;
230  }
231  /**
232   * @return string
233   */
234  public function getInternalWebPropertyId()
235  {
236    return $this->internalWebPropertyId;
237  }
238  /**
239   * @param string
240   */
241  public function setKind($kind)
242  {
243    $this->kind = $kind;
244  }
245  /**
246   * @return string
247   */
248  public function getKind()
249  {
250    return $this->kind;
251  }
252  /**
253   * @param int
254   */
255  public function setMinimumExperimentLengthInDays($minimumExperimentLengthInDays)
256  {
257    $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays;
258  }
259  /**
260   * @return int
261   */
262  public function getMinimumExperimentLengthInDays()
263  {
264    return $this->minimumExperimentLengthInDays;
265  }
266  /**
267   * @param string
268   */
269  public function setName($name)
270  {
271    $this->name = $name;
272  }
273  /**
274   * @return string
275   */
276  public function getName()
277  {
278    return $this->name;
279  }
280  /**
281   * @param string
282   */
283  public function setObjectiveMetric($objectiveMetric)
284  {
285    $this->objectiveMetric = $objectiveMetric;
286  }
287  /**
288   * @return string
289   */
290  public function getObjectiveMetric()
291  {
292    return $this->objectiveMetric;
293  }
294  /**
295   * @param string
296   */
297  public function setOptimizationType($optimizationType)
298  {
299    $this->optimizationType = $optimizationType;
300  }
301  /**
302   * @return string
303   */
304  public function getOptimizationType()
305  {
306    return $this->optimizationType;
307  }
308  /**
309   * @param ExperimentParentLink
310   */
311  public function setParentLink(ExperimentParentLink $parentLink)
312  {
313    $this->parentLink = $parentLink;
314  }
315  /**
316   * @return ExperimentParentLink
317   */
318  public function getParentLink()
319  {
320    return $this->parentLink;
321  }
322  /**
323   * @param string
324   */
325  public function setProfileId($profileId)
326  {
327    $this->profileId = $profileId;
328  }
329  /**
330   * @return string
331   */
332  public function getProfileId()
333  {
334    return $this->profileId;
335  }
336  /**
337   * @param string
338   */
339  public function setReasonExperimentEnded($reasonExperimentEnded)
340  {
341    $this->reasonExperimentEnded = $reasonExperimentEnded;
342  }
343  /**
344   * @return string
345   */
346  public function getReasonExperimentEnded()
347  {
348    return $this->reasonExperimentEnded;
349  }
350  /**
351   * @param bool
352   */
353  public function setRewriteVariationUrlsAsOriginal($rewriteVariationUrlsAsOriginal)
354  {
355    $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal;
356  }
357  /**
358   * @return bool
359   */
360  public function getRewriteVariationUrlsAsOriginal()
361  {
362    return $this->rewriteVariationUrlsAsOriginal;
363  }
364  /**
365   * @param string
366   */
367  public function setSelfLink($selfLink)
368  {
369    $this->selfLink = $selfLink;
370  }
371  /**
372   * @return string
373   */
374  public function getSelfLink()
375  {
376    return $this->selfLink;
377  }
378  /**
379   * @param string
380   */
381  public function setServingFramework($servingFramework)
382  {
383    $this->servingFramework = $servingFramework;
384  }
385  /**
386   * @return string
387   */
388  public function getServingFramework()
389  {
390    return $this->servingFramework;
391  }
392  /**
393   * @param string
394   */
395  public function setSnippet($snippet)
396  {
397    $this->snippet = $snippet;
398  }
399  /**
400   * @return string
401   */
402  public function getSnippet()
403  {
404    return $this->snippet;
405  }
406  /**
407   * @param string
408   */
409  public function setStartTime($startTime)
410  {
411    $this->startTime = $startTime;
412  }
413  /**
414   * @return string
415   */
416  public function getStartTime()
417  {
418    return $this->startTime;
419  }
420  /**
421   * @param string
422   */
423  public function setStatus($status)
424  {
425    $this->status = $status;
426  }
427  /**
428   * @return string
429   */
430  public function getStatus()
431  {
432    return $this->status;
433  }
434  public function setTrafficCoverage($trafficCoverage)
435  {
436    $this->trafficCoverage = $trafficCoverage;
437  }
438  public function getTrafficCoverage()
439  {
440    return $this->trafficCoverage;
441  }
442  /**
443   * @param string
444   */
445  public function setUpdated($updated)
446  {
447    $this->updated = $updated;
448  }
449  /**
450   * @return string
451   */
452  public function getUpdated()
453  {
454    return $this->updated;
455  }
456  /**
457   * @param ExperimentVariations[]
458   */
459  public function setVariations($variations)
460  {
461    $this->variations = $variations;
462  }
463  /**
464   * @return ExperimentVariations[]
465   */
466  public function getVariations()
467  {
468    return $this->variations;
469  }
470  /**
471   * @param string
472   */
473  public function setWebPropertyId($webPropertyId)
474  {
475    $this->webPropertyId = $webPropertyId;
476  }
477  /**
478   * @return string
479   */
480  public function getWebPropertyId()
481  {
482    return $this->webPropertyId;
483  }
484  public function setWinnerConfidenceLevel($winnerConfidenceLevel)
485  {
486    $this->winnerConfidenceLevel = $winnerConfidenceLevel;
487  }
488  public function getWinnerConfidenceLevel()
489  {
490    return $this->winnerConfidenceLevel;
491  }
492  /**
493   * @param bool
494   */
495  public function setWinnerFound($winnerFound)
496  {
497    $this->winnerFound = $winnerFound;
498  }
499  /**
500   * @return bool
501   */
502  public function getWinnerFound()
503  {
504    return $this->winnerFound;
505  }
506}
507
508// Adding a class alias for backwards compatibility with the previous class name.
509class_alias(Experiment::class, 'Google_Service_Analytics_Experiment');
510