GetDeparturesUseCase
in package
Read onlyYes
Provides tram data formatted for display page
Table of Contents
Properties
- $logger : LoggerInterface
- $tramService : TramServiceInterface
Methods
- __construct() : mixed
- execute() : array<int, array{stopId: string, line: string, minutes: int, direction: string}>
Properties
$logger
private
LoggerInterface
$logger
$tramService
private
TramServiceInterface
$tramService
Methods
__construct()
public
__construct(TramServiceInterface $tramService, LoggerInterface $logger) : mixed
Parameters
- $tramService : TramServiceInterface
- $logger : LoggerInterface
execute()
public
execute(array<string|int, string> $stopIds) : array<int, array{stopId: string, line: string, minutes: int, direction: string}>
Parameters
- $stopIds : array<string|int, string>