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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| EntityIdCollection | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | 0.00% | 0 / 1 | |||
| toStrings | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Contracts\Entity\Collection; | |
| 6 | ||
| 7 | use Stewart\Contracts\Collection\ListCollection; | |
| 8 | use Stewart\Contracts\Entity\EntityId; | |
| 9 | ||
| 10 | /** @extends ListCollection<EntityId> */ | |
| 11 | final readonly class EntityIdCollection extends ListCollection | |
| 12 | { | |
| 13 | /** @return list<string> */ | |
| 14 | public function toStrings(): array | |
| 15 | { | |
| 16 | return $this->mapToList(static fn(EntityId $entityId): string => $entityId->value); | |
| 17 | } | |
| 18 | } |