| 1 | <?php |
||
| 4 | class StandardChance implements Chance |
||
| 5 | { |
||
| 6 | private $percentage = 100; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Determine whether or not the experiment should run |
||
| 10 | */ |
||
| 11 | public function shouldRun() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return int |
||
| 24 | */ |
||
| 25 | public function getPercentage() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param int $percentage |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | public function setPercentage($percentage) |
||
| 40 | } |
||
| 41 |