src/Guzzle/Service/Resource/CompositeResourceIteratorFactory.php
protected function getFactory(CommandInterface $command)
    {
        foreach ($this->factories as $factory) {
            if ($factory->canBuild($command)) {
                return $factory;
            }
        }

        return false;
    }
protected function getFactory(CommandInterface $command)
    {
        foreach ($this->factories as $factory) {
            if ($factory->canBuild($command)) {
                return $factory;
            }
        }

        return false;
    }
protected function getFactory ( CommandInterface $ command ) { foreach ( $ this -> factories as $ factory ) { if ( $ factory -> canBuild ( $ command ) ) { return $ factory ; } } return false ; }
Get the factory that matches the command object

@param CommandInterface $command Command retrieving the iterator for

@return ResourceIteratorFactoryInterface|bool
Get the factory that matches the command object