1
我從php開始。我有一個DicomContainer
容器,其中包含幾個功能。我想在我的WadoService
服務中調用這些功能。在服務中使用容器功能
class DicomContainer {
/**
* Get Patient's Name.
* @return string Patient's Name.
*/
public function getPatientsName() {
//PatientsName
return $this->getValueOf("DICOM", "PatientsName");
}
}
class WadoService {
$patientsname = getPatientName();???????
}
這可能嗎?
對不起。但你怎麼能這樣呢? '公共函數__construct($ em){}' – Floriane
是的,您有權利 – Amaury
但我在大括號之間寫什麼? – Floriane