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
3declare(strict_types=1);
4
5namespace Stewart\Contracts\Topic\Collection;
6
7use Stewart\Contracts\Collection\ListCollection;
8use Stewart\Contracts\Topic\TopicEvent;
9
10/** @extends ListCollection<TopicEvent> */
11final readonly class TopicEventCollection extends ListCollection
12{
13    public function withTopicEvent(TopicEvent $event): self
14    {
15        return $this->withAppendedElement($event);
16    }
17}