| Conditions | 4 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function init(array $arguments = []): self |
||
| 35 | { |
||
| 36 | $this->path = $arguments['path'] ?: '/'; |
||
| 37 | unset($arguments['path']); |
||
| 38 | |||
| 39 | $this->arguments = $arguments; |
||
| 40 | |||
| 41 | foreach ($this->arguments as $argument => $value) { |
||
| 42 | $method = Text::camel('set_' . $argument); |
||
| 43 | if (method_exists($this, $method)) { |
||
| 44 | call_user_func([$this, $method], $value); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | return $this; |
||
| 49 | } |
||
| 67 |