MCPcopy Create free account
hub / github.com/taskforcesh/bullmq / getCountsPerPriority

Method getCountsPerPriority

php/src/Queue.php:258–268  ·  view source on GitHub ↗

* Get counts per priority. * * @param array $priorities Array of priority levels to count * @return array Priority to count mapping */

(array $priorities)

Source from the content-addressed store, hash-verified

256 * @return array<int, int> Priority to count mapping
257 */
258 public function getCountsPerPriority(array $priorities): array
259 {
260 $counts = $this->scripts->getCountsPerPriority($priorities);
261
262 $result = [];
263 foreach ($priorities as $i => $priority) {
264 $result[$priority] = $counts[$i] ?? 0;
265 }
266
267 return $result;
268 }
269
270 /**
271 * Get a job by its ID.

Callers

nothing calls this directly

Calls 1

getCountsPerPriorityMethod · 0.65

Tested by

no test coverage detected