1 | <?php |
||
12 | class PageViewRouter |
||
13 | { |
||
14 | private $mapping; |
||
15 | private $redirects; |
||
16 | |||
17 | public function __construct() |
||
21 | |||
22 | /** |
||
23 | * Register a PageView to this router. |
||
24 | */ |
||
25 | public function registerPageView(BasePageView $pageView) |
||
52 | |||
53 | /** |
||
54 | * Get the PageView used for a specified route. |
||
55 | * |
||
56 | * @param string $route |
||
57 | * |
||
58 | * @return StaticPageView|DynamicPageView|RepeaterPageView|null |
||
59 | */ |
||
60 | public function getRoute($route) |
||
64 | |||
65 | /** |
||
66 | * Retrieve all of the URL routes registered. |
||
67 | * |
||
68 | * @return string[] |
||
|
|||
69 | */ |
||
70 | public function getRoutes() |
||
74 | |||
75 | public function &getRouteMapping() |
||
79 | |||
80 | public static function extractUrlParameters($permalink) |
||
88 | } |
||
89 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.