src/Core/CustomMethods.php
protected function registerExtraMethodCallback($name, $callback)
    {
        if (!isset($this->extra_method_registers[$name])) {
            $this->extra_method_registers[$name] = $callback;
        }
    }
protected function registerExtraMethodCallback($name, $callback)
    {
        if (!isset($this->extra_method_registers[$name])) {
            $this->extra_method_registers[$name] = $callback;
        }
    }
protected function registerExtraMethodCallback ( $ name , $ callback ) { if ( ! isset ( $ this -> extra_method_registers [ $ name ] ) ) { $ this -> extra_method_registers [ $ name ] = $ callback ; } }
Register an callback to invoke that defines extra methods

@param string $name
@param callable $callback
Register an callback to invoke that defines extra methods