Scientist\Experiment::getChance PHP Method

getChance() public method

Get the execution chance.
public getChance ( ) : integer
return integer
    public function getChance()
    {
        return $this->chance;
    }

Usage Example

 public function test_that_a_chance_variable_can_be_set()
 {
     $e = new Experiment('test experiment');
     $e->chance(50);
     $this->assertEquals(50, $e->getChance());
 }