Total Complexity | 4 |
Total Lines | 35 |
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 | protected Character $character; |
||
15 | |||
16 | public function __construct(Character $character) { |
||
17 | 1 | parent::__construct(); |
|
18 | 1 | $this->character = $character; |
|
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 { |
||
31 | 1 | } |
|
32 | |||
33 | /** |
||
34 | * @param int $index |
||
35 | * @throws \RuntimeException |
||
36 | * @throws \OutOfRangeException |
||
37 | */ |
||
38 | public function offsetUnset($index): void { |
||
49 | ?> |