PHP Класс Swap\Service\Factory

Автор: Florian Voutzinos ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Http\Client\HttpClient $httpClient = null, Http\Message\RequestFactory $requestFactory = null )
create ( string $serviceName, array $args = [] ) : Exchanger\Contract\ExchangeRateService Creates a new service.
setHttpClient ( Http\Client\HttpClient $httpClient ) Sets the http client.
setRequestFactory ( Http\Message\RequestFactory $requestFactory ) Sets the request factory.

Описание методов

__construct() публичный Метод

public __construct ( Http\Client\HttpClient $httpClient = null, Http\Message\RequestFactory $requestFactory = null )
$httpClient Http\Client\HttpClient
$requestFactory Http\Message\RequestFactory

create() публичный Метод

Creates a new service.
public create ( string $serviceName, array $args = [] ) : Exchanger\Contract\ExchangeRateService
$serviceName string
$args array
Результат Exchanger\Contract\ExchangeRateService

setHttpClient() публичный Метод

Sets the http client.
public setHttpClient ( Http\Client\HttpClient $httpClient )
$httpClient Http\Client\HttpClient

setRequestFactory() публичный Метод

Sets the request factory.
public setRequestFactory ( Http\Message\RequestFactory $requestFactory )
$requestFactory Http\Message\RequestFactory