Reflector
class Reflector (View source)
Methods
static bool
isCallable(mixed $var, bool $syntaxOnly = false)
This is a PHP 7.4 compatible implementation of is_callable.
static string|null
getParameterClassName(ReflectionParameter $parameter)
Get the class name of the given parameter's type, if possible.
static bool
isParameterSubclassOf(ReflectionParameter $parameter, string $className)
Determine if the parameter's type is a subclass of the given type.
Details
static bool
isCallable(mixed $var, bool $syntaxOnly = false)
This is a PHP 7.4 compatible implementation of is_callable.
static string|null
getParameterClassName(ReflectionParameter $parameter)
Get the class name of the given parameter's type, if possible.
static bool
isParameterSubclassOf(ReflectionParameter $parameter, string $className)
Determine if the parameter's type is a subclass of the given type.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.