Sets the route collection this matcher should use.
\Symfony\Component\Routing\RouteCollection $collection: The collection against which to match.
\Drupal\Core\Routing\PartialMatcherInterface The current matcher.
Overrides PartialMatcherInterface::setCollection
public function setCollection(RouteCollection $collection) {
$this->routes = $collection;
return $this;
}