PHP Class Scientist\Intern
Interns do all the hard work, naturally. They'll execute an experiment within
the Laboratory, and record the results.
Show file
Open project: daylerees/scientist
Class Usage Examples
Public Methods
Method |
Description |
|
run ( Experiment $experiment ) : Report |
Run an experiment, and retrieve the result. |
|
Protected Methods
Method |
Description |
|
determineMatches ( Scientist\Matchers\Matcher $matcher, Result $control, array $trials = [] ) |
Determine whether trial results match the control. |
|
runControl ( Experiment $experiment ) : Result |
Run the control callback, and record its execution state. |
|
runTrials ( Experiment $experiment ) : Result[] |
Run trial callbacks and record their execution state. |
|
Method Details
determineMatches()
protected method
Determine whether trial results match the control.
protected determineMatches ( Scientist\Matchers\Matcher $matcher, Result $control, array $trials = [] ) |
$matcher |
Scientist\Matchers\Matcher |
|
$control |
Result |
|
$trials |
array |
|
Run an experiment, and retrieve the result.
public run ( Experiment $experiment ) : Report |
$experiment |
Experiment |
|
return |
Report |
|
runControl()
protected method
Run the control callback, and record its execution state.
protected runControl ( Experiment $experiment ) : Result |
$experiment |
Experiment |
|
return |
Result |
|
runTrials()
protected method
Run trial callbacks and record their execution state.
protected runTrials ( Experiment $experiment ) : Result[] |
$experiment |
Experiment |
|
return |
Result[] |
|