Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Request extends AbstractSystem |
||
6 | { |
||
7 | /** |
||
8 | * @var \BFW\Request $request |
||
9 | */ |
||
10 | protected $request; |
||
11 | |||
12 | /** |
||
13 | * Initialize the Request system and run the detection of all items |
||
14 | */ |
||
15 | public function __construct() |
||
16 | { |
||
17 | $this->request = \BFW\Request::getInstance(); |
||
18 | $this->request->runDetect(); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | * |
||
24 | * @return \BFW\Request |
||
25 | */ |
||
26 | public function __invoke() |
||
27 | { |
||
28 | return $this->request; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Getter accessor to request property |
||
33 | * |
||
34 | * @return \BFW\Request |
||
35 | */ |
||
36 | public function getRequest() |
||
39 | } |
||
40 | } |
||
41 |