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