<?php

require_once(MH_DIR_FS_CATALOG . MH_ROOT_PATH . 'common/classes/esp_event_adapter_interface.php');
require_once(MH_DIR_FS_CATALOG . MH_ROOT_PATH . 'common/classes/hysndr_esp_event_adapter.php');
require_once(MH_DIR_FS_CATALOG . MH_ROOT_PATH . 'common/classes/ubvx_esp_event_adapter.php');

class EspEventAdapterFactory
{
    public static function create($provider)
    {
        switch (strtolower((string)$provider)) {
            case 'hysndr':
                return new hysndrEspEventAdapter();
            case 'ubvx':
                return new ubvxEspEventAdapter();
            default:
                return null;
        }
    }
}
