Scientist\Experiment::getLaboratory PHP Метод

getLaboratory() публичный Метод

Retrieve the laboratory instance.
public getLaboratory ( ) : Laboratory | null
Результат Laboratory | null
    public function getLaboratory()
    {
        return $this->laboratory;
    }

Usage Example

Пример #1
0
 public function test_that_an_experiment_laboratory_can_be_set()
 {
     $l = new Laboratory();
     $e = new Experiment('test experiment', $l);
     $this->assertInstanceOf('\\Scientist\\Laboratory', $e->getLaboratory());
     $this->assertSame($l, $e->getLaboratory());
 }
All Usage Examples Of Scientist\Experiment::getLaboratory