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