swoole-framwork/vendor/illuminate/support/Traits/Tappable.php
2024-05-20 11:51:07 +08:00

18 lines
355 B
PHP

<?php
namespace Illuminate\Support\Traits;
trait Tappable
{
/**
* Call the given Closure with this instance then return the instance.
*
* @param callable|null $callback
* @return $this|\Illuminate\Support\HigherOrderTapProxy
*/
public function tap($callback = null)
{
return tap($this, $callback);
}
}