trait Illuminate / Support / Traits / ReflectsClosures
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

ReflectsClosures

Methods

protected

firstClosureParameterType ( Closure $closure ) : string

Get the class name of the first parameter of the given Closure.

Parameters

protected

firstClosureParameterTypes ( Closure $closure ) : array

Get the class names of the first parameter of the given Closure, including union types.

Parameters

protected

closureParameterTypes ( Closure $closure ) : array

Get the class names / types of the parameters of the given Closure.

Parameters