Document that PartialMatcherInterface::setCollection() is chainable.

8.0.x
Larry Garfield 2012-07-03 20:34:20 -05:00 committed by effulgentsia
parent a3e002dbe4
commit 329fde3f41
2 changed files with 11 additions and 0 deletions

View File

@ -14,6 +14,8 @@ class HttpMethodMatcher implements PartialMatcherInterface {
public function setCollection(RouteCollection $routes) {
$this->routes = $routes;
return $this;
}
/**

View File

@ -10,6 +10,15 @@ use Symfony\Component\Routing\RouteCollection;
*/
interface PartialMatcherInterface {
/**
* Sets the route collection this matcher should use.
*
* @param RouteCollection $collection
* The collection against which to match.
*
* @return PartialMatcherInterface
* The current matcher.
*/
public function setCollection(RouteCollection $collection);
/**