src/Common/Traits/Macro.php
public function callMacro(string $name, array $args)
    {
        if (isset($this->macros[$name])) {
            return call_user_func_array($this->macros[$name], $args);
        }
        throw new RuntimeException('There is no macro with the given name "'.$name.'" to call');
    }
public function callMacro(string $name, array $args)
    {
        if (isset($this->macros[$name])) {
            return call_user_func_array($this->macros[$name], $args);
        }
        throw new RuntimeException('There is no macro with the given name "'.$name.'" to call');
    }
public function callMacro ( string $ name , array $ args ) { if ( isset ( $ this -> macros [ $ name ] ) ) { return call_user_func_array ( $ this -> macros [ $ name ] , $ args ) ; } throw new RuntimeException ( 'There is no macro with the given name "' . $ name . '" to call' ) ; }
Call a macro
@param string $name
@param array $args
@return mixed
Call a macro