| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function register($guesser): void |
||
| 34 | { |
||
| 35 | if (!static::isSupportedGuesser($guesser)) { |
||
| 36 | throw new InvalidArgumentException( |
||
| 37 | 'Invalid guesser type "%s" provided for "%s".', get_class($guesser), get_called_class() |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 41 | array_unshift($this->guessers, $guesser); |
||
| 42 | } |
||
| 43 | |||
| 67 |