| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | #[Immutable] |
||
| 10 | final class HelperException extends \LogicException |
||
| 11 | { |
||
| 12 | private const NO_CLASS_PROPERTY_MESSAGE = 'No property "%s" in class "%s"'; |
||
| 13 | private const NO_METHOD_PARAMETER_MESSAGE = 'Method "%s::%s" has no "%s" parameter'; |
||
| 14 | |||
| 15 | public static function noClassProperty(string $className, string $propertyName, bool $wrapCallable = true, ?\Throwable $previous = null): callable|self |
||
| 21 | } |
||
| 22 | |||
| 23 | public static function noMethodParameter(string $className, string $classMethod, string $parameterName, bool $wrapCallable = true, ?\Throwable $previous = null): callable|self |
||
| 31 |