| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public static function noMethodParameter(string $className, string $classMethod, string $parameterName, bool $wrapCallable = true, ?\Throwable $previous = null): callable|self |
||
| 24 | { |
||
| 25 | $message = sprintf(self::NO_METHOD_PARAMETER_MESSAGE, $className, $classMethod, $parameterName); |
||
| 26 | $exception = new self($message, previous: $previous); |
||
| 27 | |||
| 28 | return $wrapCallable ? static fn () => throw $exception : $exception; |
||
| 29 | } |
||
| 31 |