protected function resolve($uri) { if ($this->baseUri) { return $this->baseUri ->resolve($uri) ->toString(); } else { return $uri; } }