1 | <?php |
||
25 | class Dispatcher extends Singleton |
||
26 | { |
||
27 | use SystemTrait; |
||
28 | /** |
||
29 | * @Inyectable |
||
30 | * @var \PSFS\base\Security $security |
||
31 | */ |
||
32 | protected $security; |
||
33 | /** |
||
34 | * @Inyectable |
||
35 | * @var \PSFS\base\Router $router |
||
36 | */ |
||
37 | protected $router; |
||
38 | /** |
||
39 | * @Inyectable |
||
40 | * @var \PSFS\base\config\Config $config |
||
41 | */ |
||
42 | protected $config; |
||
43 | |||
44 | private $actualUri; |
||
45 | |||
46 | /** |
||
47 | * Initializer method |
||
48 | */ |
||
49 | 1 | public function init() |
|
59 | |||
60 | /** |
||
61 | * Run method |
||
62 | * @return string HTML |
||
|
|||
63 | */ |
||
64 | 5 | public function run() |
|
85 | |||
86 | /** |
||
87 | * Method that convert an exception to html |
||
88 | * |
||
89 | * @param \Exception $e |
||
90 | * |
||
91 | * @return string HTML |
||
92 | */ |
||
93 | 2 | protected function dumpException(\Exception $e) |
|
107 | |||
108 | } |
||
109 |
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.