コード例 #1
0
ファイル: Drug.php プロジェクト: upenn-dag/patient-repository
 /**
  * {@inheritdoc}
  */
 public function hasBrand(DrugInterface $brand = null)
 {
     return $this->brands->contains($brand);
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function hasDrug(DrugInterface $drug)
 {
     return $this->drugs->contains($drug);
 }