Element_OphTrOperationbooking_Operation::getRefuseContact PHP Méthode

getRefuseContact() public méthode

public getRefuseContact ( )
    public function getRefuseContact()
    {
        if (!($contact = $this->letterContact)) {
            # FIXME: need to handle problems with letters more gracefully than throwing unhandled exceptions.
            return 'N/A';
            throw new Exception('Unable to find letter contact for operation ' . $this->id);
        }
        if ($contact->refuse_title) {
            return $contact->refuse_title . ' on ' . $contact->refuse_telephone;
        }
        return 'the ' . $this->event->episode->firm->serviceSubspecialtyAssignment->subspecialty->name . ' Admission Coordinator on ' . $contact->refuse_telephone;
    }