# Class ServiceBuilder

This object is a factory for building Service objects.

Namespace: OpenCloud\Common\Service
Located at OpenCloud/Common/Service/ServiceBuilder.php

Methods summary
`public static `OpenCloud\Common\Service\ServiceInterface`` | # `factory( Guzzle\Http\ClientInterface $client, string $class, array $options = array() )` Simple factory method for creating services. Simple factory method for creating services. #### Parameters $client `Client` $client The HTTP client object $class `string` $class The class name of the service $options `array` $options The options. #### Returns ``OpenCloud\Common\Service\ServiceInterface`` #### Throws ``OpenCloud\Common\Exceptions\ServiceException``