Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | trait Splice |
||
12 | { |
||
13 | /** |
||
14 | * Remove a portion of the array and replace it with something else. |
||
15 | * |
||
16 | * @param int $offset |
||
17 | * @param int|null $length |
||
18 | * @param array $replacement |
||
19 | * |
||
20 | * @return self |
||
21 | */ |
||
22 | 9 | public function splice(int $offset, ?int $length = null, $replacement = []): self |
|
33 |