src/Model/Player.php
public function addResearch($id, $time)
    {
        $this->researchesById[$id] = new Research($this->rec, $id, $time);
    }
public function addResearch($id, $time)
    {
        $this->researchesById[$id] = new Research($this->rec, $id, $time);
    }
public function addResearch ( $ id , $ time ) { $ this -> researchesById [ $ id ] = new Research ( $ this -> rec , $ id , $ time ) ; }
Add a research action.

@param int  $id  Research ID.
@param int  $time  Research completion time.
Add a research action .