class Reflector (View source)
| 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 array | getParameterClassNames(ReflectionParameter $parameter)
Get the class names of the given parameter's type, including union types. | |
| static string | getTypeName(ReflectionParameter $parameter, ReflectionNamedType $type)
Get the given type's class name. | |
| static bool | isParameterSubclassOf(ReflectionParameter $parameter, string $className)
Determine if the parameter's type is a subclass of the given type. | |
| static bool | isParameterBackedEnumWithStringBackingType(ReflectionParameter $parameter)
Determine if the parameter's type is a Backed Enum with a string backing type. |
This is a PHP 7.4 compatible implementation of is_callable.
Get the class name of the given parameter's type, if possible.
Get the class names of the given parameter's type, including union types.
Get the given type's class name.
Determine if the parameter's type is a subclass of the given type.
Determine if the parameter's type is a Backed Enum with a string backing type.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Support/Reflector.html