public function getName()
    {
        $mainContact = $this->Reservation()->MainContact();
        if ($this->getSurname()) {
            return trim("{$this->getFirstName()} {$this->getSurname()}");
        } elseif ($mainContact->exists() && $mainContact->getSurname()) {
            return _t('Attendee.GUEST_OF', 'Guest of {name}', null, array('name' => $mainContact->getName()));
        } else {
            return null;
        }
    }
public function getName()
    {
        $mainContact = $this->Reservation()->MainContact();
        if ($this->getSurname()) {
            return trim("{$this->getFirstName()} {$this->getSurname()}");
        } elseif ($mainContact->exists() && $mainContact->getSurname()) {
            return _t('Attendee.GUEST_OF', 'Guest of {name}', null, array('name' => $mainContact->getName()));
        } else {
            return null;
        }
    }
public function getName ( ) { $ mainContact = $ this -> Reservation ( ) -> MainContact ( ) ; if ( $ this -> getSurname ( ) ) { return trim ( "{$this->getFirstName()} {$this->getSurname()}" ) ; } elseif ( $ mainContact -> exists ( ) && $ mainContact -> getSurname ( ) ) { return _t ( 'Attendee.GUEST_OF' , 'Guest of {name}' , null , array ( 'name' => $ mainContact -> getName ( ) ) ) ; } else { return null ; } }
Get the combined first and last nave for display on the ticket and attendee list

@return string|null
Get the combined first and last nave for display on the ticket and attendee list