trait Tappable (View source)

Methods

HigherOrderTapProxy : $this)
tap(callable($this): mixed|null $callback = null)

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

Details

HigherOrderTapProxy : $this) tap(callable($this): mixed|null $callback = null)

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

Parameters

callable($this): mixed|null $callback

Return Value

HigherOrderTapProxy : $this)