| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | private function registerExtraCallback(string $type, callable $callback): Validator |
||
| 37 | { |
||
| 38 | if (!isset($this->extraCallbacks[$type]) || !is_array($this->extraCallbacks[$type])) { |
||
| 39 | $this->extraCallbacks[$type] = []; |
||
| 40 | } |
||
| 41 | |||
| 42 | $this->extraCallbacks[$type][] = fn () => call_user_func_array($callback, [$this]); |
||
| 43 | |||
| 44 | return $this; |
||
| 45 | } |
||
| 64 |