Document that PartialMatcherInterface::setCollection() is chainable.
parent
a3e002dbe4
commit
329fde3f41
|
@ -14,6 +14,8 @@ class HttpMethodMatcher implements PartialMatcherInterface {
|
||||||
|
|
||||||
public function setCollection(RouteCollection $routes) {
|
public function setCollection(RouteCollection $routes) {
|
||||||
$this->routes = $routes;
|
$this->routes = $routes;
|
||||||
|
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -10,6 +10,15 @@ use Symfony\Component\Routing\RouteCollection;
|
||||||
*/
|
*/
|
||||||
interface PartialMatcherInterface {
|
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);
|
public function setCollection(RouteCollection $collection);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue