<?php
/********************************************************************************
 * (c)1337 aheadware.com - All rights reserved
 ********************************************************************************/

/**
 * Class TB_Server_Core_Events
 */
class TB_Server_Core_EventProcessor
{
    /**
     * @param TB_Shared_Ent_TeamData_Event $event
     */
    public static function handleEvent( TB_Shared_Ent_TeamData_Event $event )
    {
        $eventMethod = 'process' . $event->event_name;
        if ( method_exists( self, $eventMethod ) )
        {
            call_user_func( 'TB_Server_Core_Events::' . $eventMethod, $event );
        }
    }

    /**
     * @param TB_Shared_Ent_TeamData_Event $event
     */
    private static function processDailyEvent( TB_Shared_Ent_TeamData_Event $event )
    {
        //$event->trigger_dt = return new DateTime( "now", new \DateTimeZone( "UTC" ) );
    }
}