PHP Class Swap\Builder

Author: Florian Voutzinos ([email protected])
Afficher le fichier Open project: florianv/swap

Méthodes publiques

Méthode Description
__construct ( array $options = [] ) Constructor.
add ( string $serviceName, array $options = [] ) : Builder Adds a service.
build ( ) : Swap Builds Swap.
useCacheItemPool ( Psr\Cache\CacheItemPoolInterface $cacheItemPool ) : Builder Uses the given cache item pool.
useHttpClient ( Http\Client\HttpClient $httpClient ) : Builder Uses the given http client.
useRequestFactory ( Http\Message\RequestFactory $requestFactory ) : Builder Uses the given request factory.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $options = [] )
$options array

add() public méthode

Adds a service.
public add ( string $serviceName, array $options = [] ) : Builder
$serviceName string
$options array
Résultat Builder

build() public méthode

Builds Swap.
public build ( ) : Swap
Résultat Swap

useCacheItemPool() public méthode

Uses the given cache item pool.
public useCacheItemPool ( Psr\Cache\CacheItemPoolInterface $cacheItemPool ) : Builder
$cacheItemPool Psr\Cache\CacheItemPoolInterface
Résultat Builder

useHttpClient() public méthode

Uses the given http client.
public useHttpClient ( Http\Client\HttpClient $httpClient ) : Builder
$httpClient Http\Client\HttpClient
Résultat Builder

useRequestFactory() public méthode

Uses the given request factory.
public useRequestFactory ( Http\Message\RequestFactory $requestFactory ) : Builder
$requestFactory Http\Message\RequestFactory
Résultat Builder