PHP Класс Scientist\Report

Here we have the results of our experiment. My fingers are crossed for you! - Dayle.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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