Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function addRegimen(RegimenInterface $regimen)
 {
     if (!$this->hasRegimen($regimen)) {
         $regimen->setDiagnosis($this);
         $this->regimens->add($regimen);
     }
     return $this;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function addSample(SampleInterface $sample)
 {
     if (!$this->hasSample($sample)) {
         $sample->setPatient($this);
         $this->samples->add($sample);
     }
     return $this;
 }