1 | <?php |
||
9 | abstract class Application |
||
10 | { |
||
11 | /** |
||
12 | * @var RouterInterface $router A router object. |
||
13 | */ |
||
14 | protected $router; |
||
15 | |||
16 | |||
17 | /** |
||
18 | * @var DispatcherInterface $dispatcher A dispatcher object. |
||
19 | */ |
||
20 | protected $dispatcher; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * @var RequestInterface $request A request object. |
||
25 | */ |
||
26 | protected $request; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * @param RouterInterface $router A router. |
||
31 | */ |
||
32 | public function setRouter(RouterInterface $router) |
||
36 | |||
37 | |||
38 | /** |
||
39 | * @param DispatcherInterface $dispatcher A dispatcher. |
||
40 | */ |
||
41 | public function setDispatcher(DispatcherInterface $dispatcher) |
||
45 | |||
46 | |||
47 | /** |
||
48 | * @param RequestInterface $request A request. |
||
49 | */ |
||
50 | public function setRequest(RequestInterface $request) |
||
54 | |||
55 | |||
56 | /** |
||
57 | * Runs the application. |
||
58 | */ |
||
59 | public function run() |
||
64 | } |
||
65 |