QuoteApiService
in package
Read onlyYes
Used to interact with quotes API
Table of Contents
Properties
- $httpClient : HttpClientInterface
- $logger : LoggerInterface
- $quoteApiUrl : string
Methods
- __construct() : mixed
- getQuote() : array<string|int, mixed>
- fetchData() : array<string|int, mixed>
Properties
$httpClient
private
HttpClientInterface
$httpClient
$logger
private
LoggerInterface
$logger
$quoteApiUrl
private
string
$quoteApiUrl
Methods
__construct()
public
__construct(LoggerInterface $logger, HttpClientInterface $httpClient, string $quoteApiUrl) : mixed
Parameters
- $logger : LoggerInterface
- $httpClient : HttpClientInterface
- $quoteApiUrl : string
getQuote()
public
getQuote() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>fetchData()
private
fetchData() : array<string|int, mixed>