lastPingAt = $connectedAt; } public function isDue(int $now): bool { return $now - $this->lastPingAt >= $this->intervalSeconds; } public function markSent(int $now): void { $this->lastPingAt = $now; } }