PHP Класс Scientist\Intern

Interns do all the hard work, naturally. They'll execute an experiment within the Laboratory, and record the results.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
run ( Experiment $experiment ) : Report Run an experiment, and retrieve the result.

Защищенные методы

Метод Описание
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.

Описание методов

determineMatches() защищенный Метод

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() публичный Метод

Run an experiment, and retrieve the result.
public run ( Experiment $experiment ) : Report
$experiment Experiment
Результат Report

runControl() защищенный Метод

Run the control callback, and record its execution state.
protected runControl ( Experiment $experiment ) : Result
$experiment Experiment
Результат Result

runTrials() защищенный Метод

Run trial callbacks and record their execution state.
protected runTrials ( Experiment $experiment ) : Result[]
$experiment Experiment
Результат Result[]