<?php

namespace Licenzo\Framework\Support\Traits;

use Licenzo\Framework\Support\GlobalClass;

trait Tappable
{
    /**
     * Call the given Closure with this instance then return the instance.
     *
     * @param  callable|null  $callback
     * @return $this|\Licenzo\Framework\Support\HigherOrderTapProxy
     */
    public function tap($callback = null)
    {
        return GlobalClass::tap($this, $callback);
    }
}
