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