OEModule\PatientTicketing\widgets\TicketAssignOutcome::formatData PHP Method

formatData() public method

Stringify the provided data structure for this widget.
public formatData ( $data ) : string
$data
return string
    public function formatData($data)
    {
        $res = $data['outcome'];
        if (@$data['followup_quantity']) {
            $res .= ' in ' . $data['followup_quantity'] . ' ' . $data['followup_period'] . ' at ' . $data['clinic_location'];
        }
        return $res;
    }