public function getEventExpired()
    {
        $expired = false;
        if (($tickets = $this->owner->Tickets()) && $expired = $tickets->exists()) {
            /** @var Ticket $ticket */
            foreach ($tickets as $ticket) {
                $expired = (!$ticket->validateDate() && $expired);
            }
        }

        return $expired;
    }
public function getEventExpired()
    {
        $expired = false;
        if (($tickets = $this->owner->Tickets()) && $expired = $tickets->exists()) {
            /** @var Ticket $ticket */
            foreach ($tickets as $ticket) {
                $expired = (!$ticket->validateDate() && $expired);
            }
        }

        return $expired;
    }
public function getEventExpired ( ) { $ expired = false ; if ( ( $ tickets = $ this -> owner -> Tickets ( ) ) && $ expired = $ tickets -> exists ( ) ) { /** @var Ticket $ticket */ foreach ( $ tickets as $ ticket ) { $ expired = ( ! $ ticket -> validateDate ( ) && $ expired ) ; } } return $ expired ; }
Check if the event is expired, either by unavailable tickets or because the date has passed

@return bool
Check if the event is expired either by unavailable tickets or because the date has passed