mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
17 lines
355 B
PHP
17 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);
|
|
}
|
|
}
|