Lines
100.00%
1 / 1
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| TopicEventCollection | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | 100.00% | 1 / 1 | |||
| withTopicEvent | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Contracts\Topic\Collection; | |
| 6 | ||
| 7 | use Stewart\Contracts\Collection\ListCollection; | |
| 8 | use Stewart\Contracts\Topic\TopicEvent; | |
| 9 | ||
| 10 | /** @extends ListCollection<TopicEvent> */ | |
| 11 | final readonly class TopicEventCollection extends ListCollection | |
| 12 | { | |
| 13 | public function withTopicEvent(TopicEvent $event): self | |
| 14 | { | |
| 15 | return $this->withAppendedElement($event); | |
| 16 | } | |
| 17 | } |