NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class ServiceDescriptionFactory

Command factory used to create commands based on service descriptions

  Guzzle\Service\Command\Factory\ServiceDescriptionFactory implements Guzzle\Service\Command\Factory\FactoryInterface

Namespace: Guzzle\Service\Command\Factory
Located at Guzzle/Service/Command/Factory/ServiceDescriptionFactory.php

## Methods summary

- `public` `__construct ( Guzzle\Service\Description\ServiceDescriptionInterface $description, Guzzle\Inflection\InflectorInterface $inflector = null )`
- `public` `setServiceDescription ( Guzzle\Service\Description\ServiceDescriptionInterface $description )`

  Change the service description used with the factory

- `public` `getServiceDescription ( )`

  Returns the service description

- `public` `factory ( string $name, array $args = array() )`

  Create a command by name

## Methods detail

# `public`
`__construct( `Guzzle\Service\Description\ServiceDescriptionInterface` $description, `Guzzle\Inflection\InflectorInterface` $inflector = null )`

#### Parameters

$description
  ``Guzzle\Service\Description\ServiceDescriptionInterface``
  $description Service description
$inflector
  ``Guzzle\Inflection\InflectorInterface``
  $inflector Optional inflector to use if the command is not at first found

# `public `Guzzle\Service\Command\Factory\FactoryInterface``
`setServiceDescription( `Guzzle\Service\Description\ServiceDescriptionInterface` $description )`

Change the service description used with the factory

#### Parameters

$description
  ``Guzzle\Service\Description\ServiceDescriptionInterface``
  $description Service description to use

#### Returns

``Guzzle\Service\Command\Factory\FactoryInterface``
# `public `Guzzle\Service\Description\ServiceDescriptionInterface``
`getServiceDescription( )`

Returns the service description

#### Returns

``Guzzle\Service\Description\ServiceDescriptionInterface``
# `public CommandInterface|null`
`factory( string $name, array $args = array() )`

Create a command by name

#### Parameters

$name
  `string`
  $name Command to create
$args
  `array`
  $args Command arguments

#### Returns

`CommandInterface|null`

#### Implementation of

`Guzzle\Service\Command\Factory\FactoryInterface::factory()`

### Magic methods summary

## Properties summary

`protected `Guzzle\Service\Description\ServiceDescriptionInterface`` | $description | #
`protected `Guzzle\Inflection\InflectorInterface`` | $inflector | #