GetTextStatistics
in package
Use case for retrieving text statistics for home page display.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : array<string|int, mixed>|null
- Execute the use case.
Properties
$statsService
private
TextStatisticsService
$statsService
Methods
__construct()
Constructor.
public
__construct([TextStatisticsService|null $statsService = null ]) : mixed
Parameters
- $statsService : TextStatisticsService|null = null
-
Optional stats service
execute()
Execute the use case.
public
execute(int $textId, array<string|int, mixed> $textInfo) : array<string|int, mixed>|null
Parameters
- $textId : int
-
Text ID
- $textInfo : array<string|int, mixed>
-
Text info from GetDashboardData
Return values
array<string|int, mixed>|null —Text info with statistics, or null if no text