Lines 0.00% 0 / 1
Functions and Methods 0.00% 0 / 1
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
WorkerIdCollection 0.00% 0 / 1 0.00% 0 / 1 2 0.00% 0 / 1
 toInts 0.00% 0 / 1 0.00% 0 / 1 2
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Model\Collection;
6
7use Stewart\Contracts\Collection\ListCollection;
8use Stewart\Runtime\Model\WorkerId;
9
10/** @extends ListCollection<WorkerId> */
11final readonly class WorkerIdCollection extends ListCollection
12{
13    /** @return list<int> */
14    public function toInts(): array
15    {
16        return $this->mapToList(static fn(WorkerId $workerId): int => $workerId->value);
17    }
18}