1 | <?php |
||
12 | class PageViewRouter |
||
13 | { |
||
14 | private $redirects; |
||
15 | private $baseUrl; |
||
16 | private $mapping; |
||
17 | |||
18 | public function __construct() |
||
22 | |||
23 | public function getBaseUrl() |
||
27 | |||
28 | public function setBaseUrl($baseUrl) |
||
32 | |||
33 | /** |
||
34 | * Register a PageView to this router. |
||
35 | */ |
||
36 | public function registerPageView(BasePageView $pageView) |
||
63 | |||
64 | /** |
||
65 | * Get the PageView used for a specified route. |
||
66 | * |
||
67 | * @param string $route |
||
68 | * |
||
69 | * @return StaticPageView|DynamicPageView|RepeaterPageView|null |
||
70 | */ |
||
71 | public function getRoute($route) |
||
75 | |||
76 | /** |
||
77 | * Retrieve all of the URL routes registered. |
||
78 | * |
||
79 | * @return string[] |
||
80 | */ |
||
81 | public function getRoutes() |
||
85 | |||
86 | public function &getRouteMapping() |
||
90 | |||
91 | public static function extractUrlParameters($permalink) |
||
99 | } |
||
100 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.