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

# Class AbstractResourceIteratorFactory

Abstract resource iterator factory implementation

  Guzzle\Service\Resource\AbstractResourceIteratorFactory implements Guzzle\Service\Resource\ResourceIteratorFactoryInterface

### Direct known subclasses

`Guzzle\Service\Resource\MapResourceIteratorFactory`, `Guzzle\Service\Resource\ResourceIteratorClassFactory`

Abstract
Namespace: Guzzle\Service\Resource
Located at Guzzle/Service/Resource/AbstractResourceIteratorFactory.php

## Methods summary

- `public` `build ( Guzzle\Service\Command\CommandInterface $command, array $options = array() )`

  Create a resource iterator

- `public` `canBuild ( Guzzle\Service\Command\CommandInterface $command )`

  Check if the factory can create an iterator

- `abstract protected` `getClassName ( Guzzle\Service\Command\CommandInterface $command )`

  Get the name of the class to instantiate for the command

## Methods detail

# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`build( `Guzzle\Service\Command\CommandInterface` $command, array $options = array() )`

Create a resource iterator

#### Parameters

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command to create an iterator for
$options
  `array`
  $options Iterator options that are exposed as data.

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``

#### Implementation of

`Guzzle\Service\Resource\ResourceIteratorFactoryInterface::build()`
# `public boolean`
`canBuild( `Guzzle\Service\Command\CommandInterface` $command )`

Check if the factory can create an iterator

#### Parameters

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command to create an iterator for

#### Returns

`boolean`

#### Implementation of

`Guzzle\Service\Resource\ResourceIteratorFactoryInterface::canBuild()`
# `abstract protected string`
`getClassName( `Guzzle\Service\Command\CommandInterface` $command )`

Get the name of the class to instantiate for the command

#### Parameters

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command that is associated with the iterator

#### Returns

`string`

### Magic methods summary