src/Carbon/CarbonPeriod.php
protected function callMacro($name, $parameters)
    {
        $macro = static::$macros[$name];

        if ($macro instanceof Closure) {
            return call_user_func_array($macro->bindTo($this, static::class), $parameters);
        }

        return call_user_func_array($macro, $parameters);
    }
protected function callMacro($name, $parameters)
    {
        $macro = static::$macros[$name];

        if ($macro instanceof Closure) {
            return call_user_func_array($macro->bindTo($this, static::class), $parameters);
        }

        return call_user_func_array($macro, $parameters);
    }
protected function callMacro ( $ name , $ parameters ) { $ macro = static :: $ macros [ $ name ] ; if ( $ macro instanceof Closure ) { return call_user_func_array ( $ macro -> bindTo ( $ this , static :: class ) , $ parameters ) ; } return call_user_func_array ( $ macro , $ parameters ) ; }
Call given macro.

@param string $name
@param array  $parameters

@return mixed
Call given macro .