| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | #[Pure] |
||
| 26 | public static function noMethodParameter(string $className, string $classMethod, string $parameterName, bool $wrapCallable = true, ?\Throwable $previous = null): callable|self |
||
| 27 | { |
||
| 28 | $message = sprintf(self::NO_METHOD_PARAMETER_MESSAGE, $className, $classMethod, $parameterName); |
||
| 29 | $exception = new self($message, previous: $previous); |
||
| 30 | |||
| 31 | return $wrapCallable ? static fn () => throw $exception : $exception; |
||
| 32 | } |
||
| 34 |