GetCalendarHeatmapData
in package
Returns daily activity totals for the last 365 days.
Output is keyed by date string, ready for the frontend calendar heatmap.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : array<string, array{total: int, created: int, reviewed: int, read: int}>
- Execute the use case.
Properties
$repository
private
ActivityRepositoryInterface
$repository
Methods
__construct()
Constructor.
public
__construct(ActivityRepositoryInterface $repository) : mixed
Parameters
- $repository : ActivityRepositoryInterface
-
Activity repository
execute()
Execute the use case.
public
execute() : array<string, array{total: int, created: int, reviewed: int, read: int}>
Return values
array<string, array{total: int, created: int, reviewed: int, read: int}> —Date (Y-m-d) => activity breakdown