IMO we should rename the variable names:
It should probably be `setPath($pattern)` to be in line with `setHostname($pattern)`.
And also `setPattern($path)` instead to make things more clear and consistent.