public function toUri(array $pathVars = []): string
    {
        if ($pathVars) {
            return \strtr($this->path, $pathVars);
        }

        return $this->path;
    }
public function toUri(array $pathVars = []): string
    {
        if ($pathVars) {
            return \strtr($this->path, $pathVars);
        }

        return $this->path;
    }
public function toUri ( array $ pathVars = [ ] ) : string { if ( $ pathVars ) { return \ strtr ( $ this -> path , $ pathVars ) ; } return $ this -> path ; }
build uri string.
@param array $pathVars
@return string
build uri string .