Moved regex/match functionality to LoadableRoute.

This commit is contained in:
Simon Sessingø
2016-11-28 04:45:46 +01:00
parent b694a7c0c9
commit 5c89ae2aaf
4 changed files with 41 additions and 40 deletions
@@ -51,4 +51,19 @@ interface ILoadableRoute extends IRoute
*/
public function setName($name);
/**
* Get regular expression match used for matching route (if defined).
*
* @return string
*/
public function getMatch();
/**
* Add regular expression match for the entire route.
*
* @param string $regex
* @return static
*/
public function setMatch($regex);
}