ReportableHandler
class ReportableHandler
Traits
Properties
| protected callable | $callback | The underlying callback. |
|
| protected bool | $shouldStop | Indicates if reporting should stop after invoking this handler. |
Methods
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.
Get the class names / types of the return type of the given Closure.
Create a new reportable handler instance.
Indicate that report handling should stop after invoking this callback.
Details
in
ReflectsClosures at line 25
protected string
firstClosureParameterType(Closure $closure)
Get the class name of the first parameter of the given Closure.
in
ReflectsClosures at line 48
protected array
firstClosureParameterTypes(Closure $closure)
Get the class names of the first parameter of the given Closure, including union types.
in
ReflectsClosures at line 74
protected array
closureParameterTypes(Closure $closure)
Get the class names / types of the parameters of the given Closure.
in
ReflectsClosures at line 94
protected array
closureReturnTypes(Closure $closure)
Get the class names / types of the return type of the given Closure.
at line 31
__construct(callable $callback)
Create a new reportable handler instance.
at line 41
bool
__invoke(Throwable $e)
Invoke the handler.
at line 55
bool
handles(Throwable $e)
Determine if the callback handles the given exception.
at line 71
ReportableHandler
stop()
Indicate that report handling should stop after invoking this callback.