public static function createService($serviceName)
    {
        switch ($serviceName) {
            case self::SERVICE_REST:
                return new RestService();
            break;
            case self::SERVICE_SOAP:
                return new SoapService();
            break;
            case self::SERVICE_XMLRPC:
                return new XmlRpcService();
            break;
        }

        throw new \Exception(sprintf('Unknown service %s', $serviceName));
    }
public static function createService($serviceName)
    {
        switch ($serviceName) {
            case self::SERVICE_REST:
                return new RestService();
            break;
            case self::SERVICE_SOAP:
                return new SoapService();
            break;
            case self::SERVICE_XMLRPC:
                return new XmlRpcService();
            break;
        }

        throw new \Exception(sprintf('Unknown service %s', $serviceName));
    }
public static function createService ( $ serviceName ) { switch ( $ serviceName ) { case self :: SERVICE_REST : return new RestService ( ) ; break ; case self :: SERVICE_SOAP : return new SoapService ( ) ; break ; case self :: SERVICE_XMLRPC : return new XmlRpcService ( ) ; break ; } throw new \ Exception ( sprintf ( 'Unknown service %s' , $ serviceName ) ) ; }
Create Service.

@param int $serviceName Service Type DBInstance::SERVICE_*

@return \Realboard\Component\Database\DBInstance\DBInterface\ServiceInterface
Create Service .