trait ReflectsClosures (View source)
| string | firstClosureParameterType(Closure $closure)
Get the class name of the first parameter of the given Closure. | |
| array | firstClosureParameterTypes(Closure $closure)
Get the class names of the first parameter of the given Closure, including union types. | |
| array | closureParameterTypes(Closure $closure)
Get the class names / types of the parameters of the given Closure. |
Get the class name of the first parameter of the given Closure.
Get the class names of the first parameter of the given Closure, including union types.
Get the class names / types of the parameters of the given Closure.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Support/Traits/ReflectsClosures.html