Skip to content
Corex

ActivityService

Corex\Activity\ActivityService · class · Core layer

Application boundary for recording and reading authoritative product activity.

__construct(ActivityRepository $repository)

Section titled “__construct(ActivityRepository $repository)”

record(int $actorId, string $actorKind, string $actorLabel, string $area, string $kind, string $targetType, string $targetId, string $targetLabel, string $outcome, array $summary, array $context, string $sensitivity, DateTimeImmutable $retentionUntil, ?DateTimeImmutable $occurredAt, ?string $eventUuid): ActivityEvent

Section titled “record(int $actorId, string $actorKind, string $actorLabel, string $area, string $kind, string $targetType, string $targetId, string $targetLabel, string $outcome, array $summary, array $context, string $sensitivity, DateTimeImmutable $retentionUntil, ?DateTimeImmutable $occurredAt, ?string $eventUuid): ActivityEvent”

query(array $filters, int $page, int $perPage): array

Section titled “query(array $filters, int $page, int $perPage): array”

pruneExpired(DateTimeImmutable $now, int $limit): int

Section titled “pruneExpired(DateTimeImmutable $now, int $limit): int”