lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Experiment.php 1 location
|
@@ 152-159 (lines=8) @@
|
149 |
|
case 'name': $this->setName($value); break; |
150 |
|
case 'schedule': $this->setSchedule(new Schedule($value)); break; |
151 |
|
case 'status': $this->setStatus($value); break; |
152 |
|
case 'variations': { |
153 |
|
$variations = array(); |
154 |
|
foreach ($value as $variationInfo) { |
155 |
|
$variations[] = new Variation($variationInfo); |
156 |
|
} |
157 |
|
$this->setVariations($variations); |
158 |
|
break; |
159 |
|
} |
160 |
|
case 'id': $this->setId($value); break; |
161 |
|
case 'is_classic': $this->setIsClassic($value); break; |
162 |
|
default: |
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/ExperimentVariationReach.php 1 location
|
@@ 64-71 (lines=8) @@
|
61 |
|
case 'total_count': $this->setTotalCount($value); break; |
62 |
|
case 'treatment_count': $this->setTreatmentCount($value); break; |
63 |
|
case 'treatment_reach': $this->setTreatmentReach($value); break; |
64 |
|
case 'variations': { |
65 |
|
$variations = array(); |
66 |
|
foreach ($value as $name=>$variationInfo) { |
67 |
|
$variations[$name] = new VariationReach($variationInfo); |
68 |
|
} |
69 |
|
$this->setVariations($variations); |
70 |
|
break; |
71 |
|
} |
72 |
|
default: |
73 |
|
throw new \Exception('Unknown option: ' . $name); |
74 |
|
} |