public function add(string $name, callable $callback): \IvoPetkov\BearFrameworkAddons\ServerRequests
    {
        $this->callbacks[$name] = $callback;
        return $this;
    }
public function add(string $name, callable $callback): \IvoPetkov\BearFrameworkAddons\ServerRequests
    {
        $this->callbacks[$name] = $callback;
        return $this;
    }
public function add ( string $ name , callable $ callback ) : \ IvoPetkov \ BearFrameworkAddons \ ServerRequests { $ this -> callbacks [ $ name ] = $ callback ; return $ this ; }
Register a named callback

@param string $name
@param callable $callback
@return IvoPetkov\BearFrameworkAddons\ServerRequests Returns a reference to the object itself.
Register a named callback