protected function processMessageCancel(Message $itipMessage, VCalendar $existingObject = null)
    {
        if (!$existingObject) {
            // The event didn't exist in the first place, so we're just
            // ignoring this message.
        } else {
            foreach ($existingObject->VEVENT as $vevent) {
                $vevent->STATUS = 'CANCELLED';
                $vevent->SEQUENCE = $itipMessage->sequence;
            }
        }

        return $existingObject;
    }
protected function processMessageCancel(Message $itipMessage, VCalendar $existingObject = null)
    {
        if (!$existingObject) {
            // The event didn't exist in the first place, so we're just
            // ignoring this message.
        } else {
            foreach ($existingObject->VEVENT as $vevent) {
                $vevent->STATUS = 'CANCELLED';
                $vevent->SEQUENCE = $itipMessage->sequence;
            }
        }

        return $existingObject;
    }
protected function processMessageCancel ( Message $ itipMessage , VCalendar $ existingObject = null ) { if ( ! $ existingObject ) { // The event didn't exist in the first place, so we're just // ignoring this message. } else { foreach ( $ existingObject -> VEVENT as $ vevent ) { $ vevent -> STATUS = 'CANCELLED' ; $ vevent -> SEQUENCE = $ itipMessage -> sequence ; } } return $ existingObject ; }
Processes incoming CANCEL messages.

This is a message from an organizer, and means that either an
attendee got removed from an event, or an event got cancelled
altogether.

@param Message   $itipMessage
@param VCalendar $existingObject

@return VCalendar|null
Processes incoming CANCEL messages .