Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 81.82% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class CharacterEffectsCollection extends \Nexendrie\Utils\Collection |
||
13 | { |
||
14 | protected string $class = CharacterEffect::class; |
||
15 | |||
16 | 1 | public function __construct(private readonly Character $character) |
|
17 | { |
||
18 | 1 | parent::__construct(); |
|
19 | 1 | } |
|
20 | |||
21 | /** |
||
22 | * @param int|NULL $index |
||
23 | * @param CharacterEffect $item |
||
24 | * @throws \OutOfRangeException |
||
25 | * @throws \InvalidArgumentException |
||
26 | * @throws \RuntimeException |
||
27 | */ |
||
28 | public function offsetSet($index, $item): void |
||
32 | 1 | } |
|
33 | |||
34 | /** |
||
35 | * @param int $index |
||
36 | * @throws \RuntimeException |
||
37 | * @throws \OutOfRangeException |
||
38 | */ |
||
39 | public function offsetUnset($index): void |
||
51 |