ReportableHandler
class ReportableHandler (View source)
Traits
Properties
protected callable | $callback | The underlying callback. |
|
protected bool | $shouldStop | Indicates if reporting should stop after invoking this handler. |
Methods
string
firstClosureParameterType(Closure $closure)
Get the class name of the first parameter of the given Closure.
from
ReflectsClosures
array
firstClosureParameterTypes(Closure $closure)
Get the class names of the first parameter of the given Closure, including union types.
from
ReflectsClosures
array
closureParameterTypes(Closure $closure)
Get the class names / types of the parameters of the given Closure.
from
ReflectsClosures
__construct(callable $callback)
Create a new reportable handler instance.
$this
stop()
Indicate that report handling should stop after invoking this callback.
Details
protected string
firstClosureParameterType(Closure $closure)
Get the class name of the first parameter of the given Closure.
protected array
firstClosureParameterTypes(Closure $closure)
Get the class names of the first parameter of the given Closure, including union types.
protected array
closureParameterTypes(Closure $closure)
Get the class names / types of the parameters of the given Closure.