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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| SubscriptionIdCollection | 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\Runtime\Model\Collection; | |
| 6 | ||
| 7 | use Stewart\Contracts\Collection\ListCollection; | |
| 8 | use Stewart\Runtime\Model\SubscriptionId; | |
| 9 | ||
| 10 | /** @extends ListCollection<SubscriptionId> */ | |
| 11 | final readonly class SubscriptionIdCollection extends ListCollection | |
| 12 | { | |
| 13 | /** @return list<string> */ | |
| 14 | public function toStrings(): array | |
| 15 | { | |
| 16 | return $this->mapToList(static fn(SubscriptionId $subscriptionId): string => $subscriptionId->value); | |
| 17 | } | |
| 18 | } |