blob: 17e6b9e8b17df634a206d2a4387f6b6246a51ba4 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Tightenco\Collect\Support\Traits;
4
5trait Tappable
6{
7 /**
8 * Call the given Closure with this instance then return the instance.
9 *
10 * @param callable|null $callback
11 * @return mixed
12 */
13 public function tap($callback = null)
14 {
15 return tap($this, $callback);
16 }
17}