PHP 클래스 Scientist\Report

Here we have the results of our experiment. My fingers are crossed for you! - Dayle.
파일 보기 프로젝트 열기: daylerees/scientist 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$control Result The control result.
$name string The experiment name.
$trials array The trial results.

공개 메소드들

메소드 설명
__construct ( string $name, Result $control, array $trials = [] ) Create a new result instance.
getControl ( ) : Result Get the control result instance.
getName ( ) : string Get the experiment name.
getTrial ( string $name ) : Result Get a trial result instance by name.
getTrials ( ) : array Get the trial result instances.

메소드 상세

__construct() 공개 메소드

Create a new result instance.
public __construct ( string $name, Result $control, array $trials = [] )
$name string
$control Result
$trials array

getControl() 공개 메소드

Get the control result instance.
public getControl ( ) : Result
리턴 Result

getName() 공개 메소드

Get the experiment name.
public getName ( ) : string
리턴 string

getTrial() 공개 메소드

Get a trial result instance by name.
public getTrial ( string $name ) : Result
$name string
리턴 Result

getTrials() 공개 메소드

Get the trial result instances.
public getTrials ( ) : array
리턴 array

프로퍼티 상세

$control 보호되어 있는 프로퍼티

The control result.
protected Result,Scientist $control
리턴 Result

$name 보호되어 있는 프로퍼티

The experiment name.
protected string $name
리턴 string

$trials 보호되어 있는 프로퍼티

The trial results.
protected array $trials
리턴 array