FetchQuoteUseCase
in package
Read onlyYes
Fetches quote from external API
Table of Contents
Properties
- $apiService : QuoteApiService
- $logger : LoggerInterface
- $repository : PDOQuoteRepository
Methods
- __construct() : mixed
- execute() : void
Properties
$apiService
private
QuoteApiService
$apiService
$logger
private
LoggerInterface
$logger
$repository
private
PDOQuoteRepository
$repository
Methods
__construct()
public
__construct(LoggerInterface $logger, QuoteApiService $apiService, PDOQuoteRepository $repository) : mixed
Parameters
- $logger : LoggerInterface
- $apiService : QuoteApiService
- $repository : PDOQuoteRepository
execute()
public
execute() : void