> */ public function billBatch(int $afterId, int $limit): array { $limit = min(max($limit, 1), 10000); return $this->query()->select(<< ? ORDER BY bill.Id SQL, [$afterId]); } /** @return array> */ public function lifecycleBatch(int $afterId, int $limit): array { $limit = min(max($limit, 1), 5000); return $this->query()->select(<< ? ORDER BY flow.Id SQL, [$afterId]); } private function query(): UpstreamReadOnlyQuery { return $this->query ??= $this->queries->forSource(self::SOURCE); } }