OEModule\PatientTicketing\models\Ticket::getSourceLabel PHP Method

getSourceLabel() public method

Get the text to describe the source of this ticket.
public getSourceLabel ( ) : string
return string
    public function getSourceLabel()
    {
        if ($this->event) {
            if ($this->initial_queue_assignment->queue->summary_link) {
                return $this->initial_queue_assignment->assignment_firm->getSubspecialtyText() . ' Episode';
            }
            return $this->event->eventType->name;
        } else {
            return 'Patient';
        }
    }