Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class CollectionEvent extends AbstractEntityEvent |
||
14 | { |
||
15 | /** |
||
16 | * @var iterable<EntityInterface> |
||
17 | */ |
||
18 | private iterable $collection = []; |
||
19 | |||
20 | /** |
||
21 | * @return int |
||
22 | */ |
||
23 | 2 | public function getCount(): int |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return iterable<EntityInterface> |
||
34 | */ |
||
35 | 2 | public function getCollection(): iterable |
|
36 | { |
||
37 | 2 | return $this->collection; |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param iterable<EntityInterface> $collection |
||
42 | */ |
||
43 | 4 | public function setCollection(iterable $collection): void |
|
46 | 4 | } |
|
47 | } |
||
48 |