* Get counts per priority. * * @param array $priorities Array of priority levels to count * @return array Priority to count mapping */
(array $priorities)
| 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. |
nothing calls this directly
no test coverage detected