public function getName()
    {
        /** @var Attendee $attendee */
        if (($mainContact = $this->MainContact()) && $mainContact->exists() && $name = $mainContact->getName()) {
            return $name;
        } else {
            return 'new reservation';
        }
    }
public function getName()
    {
        /** @var Attendee $attendee */
        if (($mainContact = $this->MainContact()) && $mainContact->exists() && $name = $mainContact->getName()) {
            return $name;
        } else {
            return 'new reservation';
        }
    }
public function getName ( ) { /** @var Attendee $attendee */ if ( ( $ mainContact = $ this -> MainContact ( ) ) && $ mainContact -> exists ( ) && $ name = $ mainContact -> getName ( ) ) { return $ name ; } else { return 'new reservation' ; } }
Get the full name

@return string
Get the full name