RuntimeChecker
final class RuntimeChecker
| internal |
Methods
Calls a function after verifying it is allowed by the policy.
Calls a method on an object after verifying it is allowed by the policy.
Returns the callable wrapped as a Closure after verifying it is allowed by the policy.
Validates that no array argument is a disallowed callable and returns the arguments.
Validates that property access is allowed by the policy and returns the object.
Details
at line 17
__construct(Policy $policy)
No description
at line 27
mixed
call(mixed $callable, array $args)
Calls a function after verifying it is allowed by the policy.
at line 39
mixed
callMethod(mixed $object, mixed $method, array $args, bool $nullsafe = false)
Calls a method on an object after verifying it is allowed by the policy.
at line 62
Closure
closure(mixed $callable)
Returns the callable wrapped as a Closure after verifying it is allowed by the policy.
at line 73
array
args(mixed ...$args)
Validates that no array argument is a disallowed callable and returns the arguments.
at line 92
mixed
prop(mixed $object, mixed $property)
Validates that property access is allowed by the policy and returns the object.