| Conditions | 3 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function offsetSet($index, $router): void |
||
| 26 | { |
||
| 27 | if (!$router instanceof IResourceRouter && !$router instanceof ResourceRouteList) { |
||
| 28 | throw new InvalidStateException('ResourceRouteList expects IResourceRoute, ' . $router::class . ' given.'); |
||
| 29 | } |
||
| 30 | parent::offsetSet($index, $router); |
||
| 31 | } |
||
| 33 |