/** * Constructor. * * @param PatientRepositoryInterface $patientRepository * @param DiagnosisRepositoryInterface $diagnosisRepository * @param ActivityRepositoryInterface $activityRepository */ public function __construct(PatientRepositoryInterface $patientRepository, DiagnosisRepositoryInterface $diagnosisRepository, ActivityRepositoryInterface $activityRepository) { $this->patientClass = $patientRepository->getClassName(); $this->patientRepository = $patientRepository; $this->diagnosisClass = $diagnosisRepository->getClassName(); $this->diagnosisRepository = $diagnosisRepository; $this->activityClass = $activityRepository->getClassName(); $this->activityRepository = $activityRepository; }
/** * Constructor. * * @param ActivityRepositoryInterface $activityRepository */ public function __construct(ActivityRepositoryInterface $activityRepository) { $this->dataClass = $activityRepository->getClassName(); $this->activityRepository = $activityRepository; }