Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
AbstractController | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace Miniframe\Core; |
4 | |
5 | abstract class AbstractController |
6 | { |
7 | /** |
8 | * Reference to the Request object |
9 | * |
10 | * @var Request |
11 | */ |
12 | protected $request; |
13 | /** |
14 | * Reference to the Config object |
15 | * |
16 | * @var Config |
17 | */ |
18 | protected $config; |
19 | |
20 | /** |
21 | * Initializes a Controller |
22 | * |
23 | * @param Request $request Reference to the Request object. |
24 | * @param Config $config Reference to the Config object. |
25 | */ |
26 | public function __construct(Request $request, Config $config) |
27 | { |
28 | $this->request = $request; |
29 | $this->config = $config; |
30 | } |
31 | } |