I thought that `$path` variable parsing should go purely to the `setPath` method and we can call it here. This way whoever calls the public setPath method later can pass in complete url and it will be parsed.

What do you think?