|
@@ 100-106 (lines=7) @@
|
| 97 |
|
|
| 98 |
|
$experiment->control([$control, $name]); |
| 99 |
|
|
| 100 |
|
foreach($trials as $trial_name => $trial) { |
| 101 |
|
if(method_exists($trial, $name)){ |
| 102 |
|
$experiment->trial($trial_name, [$trial, $name]); |
| 103 |
|
} else { |
| 104 |
|
$experiment->trial($trial_name, $this->createMissingMethodCallable($trial, $name)); |
| 105 |
|
} |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
$experiment->matcher($study->getMatcher()); |
| 109 |
|
$experiment->chance($study->getChance()); |
|
@@ 123-129 (lines=7) @@
|
| 120 |
|
|
| 121 |
|
$experiment->control($this->createPropertyCallable($control, $name)); |
| 122 |
|
|
| 123 |
|
foreach($trials as $trial_name => $trial) { |
| 124 |
|
if(property_exists($trial, $name)){ |
| 125 |
|
$experiment->trial($trial_name, $this->createPropertyCallable($trial, $name)); |
| 126 |
|
} else { |
| 127 |
|
$experiment->trial($trial_name, $this->createMissingPropertyCallable($trial, $name)); |
| 128 |
|
} |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
$experiment->matcher($study->getMatcher()); |
| 132 |
|
$experiment->chance($study->getChance()); |