trait Tappable (View source)

Methods

mixed
tap(callable|null $callback = null)

Call the given Closure with this instance then return the instance.

Details

mixed tap(callable|null $callback = null)

Call the given Closure with this instance then return the instance.

Parameters

callable|null $callback

Return Value

mixed