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