public static function get($type)
    {
        $instance = null;

        switch ($type) {

            case 'IM/Send':
                $instance = new SendService();
                break;

            case 'IM/Status':
                $instance = new StatusService();
                break;

            case 'TFA/Request':
                $instance = new RequestService();
                break;

            case 'TFA/Validate':
                $instance = new ValidateService();
                break;

            default:
                throw new \Exception("Error - Unknow service", 1);

        }
        return $instance;
    }
public static function get($type)
    {
        $instance = null;

        switch ($type) {

            case 'IM/Send':
                $instance = new SendService();
                break;

            case 'IM/Status':
                $instance = new StatusService();
                break;

            case 'TFA/Request':
                $instance = new RequestService();
                break;

            case 'TFA/Validate':
                $instance = new ValidateService();
                break;

            default:
                throw new \Exception("Error - Unknow service", 1);

        }
        return $instance;
    }
public static function get ( $ type ) { $ instance = null ; switch ( $ type ) { case 'IM/Send' : $ instance = new SendService ( ) ; break ; case 'IM/Status' : $ instance = new StatusService ( ) ; break ; case 'TFA/Request' : $ instance = new RequestService ( ) ; break ; case 'TFA/Validate' : $ instance = new ValidateService ( ) ; break ; default : throw new \ Exception ( "Error - Unknow service" , 1 ) ; } return $ instance ; }
Get instance of the specified service.

@param string $type type of service to call.
@return object Instance of the service.
Get instance of the specified service .