1: <?php
2:
3: namespace Guzzle\Service\Resource;
4:
5: use Guzzle\Service\Command\CommandInterface;
6:
7: /**
8: * Factory for creating {@see ResourceIteratorInterface} objects
9: */
10: interface ResourceIteratorFactoryInterface
11: {
12: /**
13: * Create a resource iterator
14: *
15: * @param CommandInterface $command Command to create an iterator for
16: * @param array $options Iterator options that are exposed as data.
17: *
18: * @return ResourceIteratorInterface
19: */
20: public function build(CommandInterface $command, array $options = array());
21:
22: /**
23: * Check if the factory can create an iterator
24: *
25: * @param CommandInterface $command Command to create an iterator for
26: *
27: * @return bool
28: */
29: public function canBuild(CommandInterface $command);
30: }
31: