trait Illuminate / Support / Traits / ReflectsClosures
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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