1 | <?php |
||
3 | class TimberRoutes { |
||
4 | |||
5 | /** |
||
6 | * @deprecated since 0.21.1 use Upstatement/routes instead |
||
7 | */ |
||
8 | public static function init( $timber ) { |
||
12 | |||
13 | /** |
||
14 | * @param string $route |
||
15 | * @param callable $callback |
||
16 | * @deprecated since 0.21.1 use Upstatement/routes instead |
||
17 | */ |
||
18 | public static function add_route($route, $callback, $args = array()) { |
||
21 | |||
22 | /** |
||
23 | * @param array $template |
||
24 | * @param mixed $query |
||
25 | * @param int $status_code |
||
26 | * @param bool $tparams |
||
27 | * @return bool |
||
|
|||
28 | * @deprecated since 0.21.1 use Upstatement/routes instead |
||
29 | */ |
||
30 | public static function load_view($template, $query = false, $status_code = 200, $tparams = false) { |
||
33 | } |
||
34 |
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.