OEModule\PASAPI\resources\PatientId::resolveModelId PHP 메소드

resolveModelId() 보호된 메소드

Resolve the model by the given Patient Id.
protected resolveModelId ( ) : mixed
리턴 mixed
    protected function resolveModelId()
    {
        $model = $this->getModelForClass('Patient');
        $instance = $model->findByPk($this->Id);
        if ($instance) {
            return $instance;
        }
        $this->patientNotFound();
    }