src/Guzzle/Service/Command/Factory/CompositeFactory.php
public static function getDefaultChain(ClientInterface $client)
    {
        $factories = array();
        if ($description = $client->getDescription()) {
            $factories[] = new ServiceDescriptionFactory($description);
        }
        $factories[] = new ConcreteClassFactory($client);

        return new static($factories);
    }
public static function getDefaultChain(ClientInterface $client)
    {
        $factories = array();
        if ($description = $client->getDescription()) {
            $factories[] = new ServiceDescriptionFactory($description);
        }
        $factories[] = new ConcreteClassFactory($client);

        return new static($factories);
    }
public static function getDefaultChain ( ClientInterface $ client ) { $ factories = array ( ) ; if ( $ description = $ client -> getDescription ( ) ) { $ factories [ ] = new ServiceDescriptionFactory ( $ description ) ; } $ factories [ ] = new ConcreteClassFactory ( $ client ) ; return new static ( $ factories ) ; }
Get the default chain to use with clients

@param ClientInterface $client Client to base the chain on

@return self
Get the default chain to use with clients