/** * {@inheritdoc} */ public function addRegimen(RegimenInterface $regimen) { if (!$this->hasRegimen($regimen)) { $regimen->setDiagnosis($this); $this->regimens->add($regimen); } return $this; }
/** * {@inheritdoc} */ public function addSample(SampleInterface $sample) { if (!$this->hasSample($sample)) { $sample->setPatient($this); $this->samples->add($sample); } return $this; }