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