events = $events; $this->policy = $policy; $this->clock = $clock; } /** * Execute one purge tick. */ public function purge(): int { return $this->events->deleteOlderThan( $this->policy->cutoffFrom( $this->clock->now() ) ); } }