PHP 클래스 Swap\Builder

저자: Florian Voutzinos ([email protected])
파일 보기 프로젝트 열기: florianv/swap

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

add() 공개 메소드

Adds a service.
public add ( string $serviceName, array $options = [] ) : Builder
$serviceName string
$options array
리턴 Builder

build() 공개 메소드

Builds Swap.
public build ( ) : Swap
리턴 Swap

useCacheItemPool() 공개 메소드

Uses the given cache item pool.
public useCacheItemPool ( Psr\Cache\CacheItemPoolInterface $cacheItemPool ) : Builder
$cacheItemPool Psr\Cache\CacheItemPoolInterface
리턴 Builder

useHttpClient() 공개 메소드

Uses the given http client.
public useHttpClient ( Http\Client\HttpClient $httpClient ) : Builder
$httpClient Http\Client\HttpClient
리턴 Builder

useRequestFactory() 공개 메소드

Uses the given request factory.
public useRequestFactory ( Http\Message\RequestFactory $requestFactory ) : Builder
$requestFactory Http\Message\RequestFactory
리턴 Builder