Total Complexity | 8 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class NetteRequestDetector implements DetectorInterface |
||
13 | { |
||
14 | use SmartObject; |
||
15 | |||
16 | /** @var \Nette\Http\IRequest */ |
||
17 | private $request; |
||
18 | |||
19 | /** |
||
20 | * @param \Nette\Http\IRequest $request |
||
21 | */ |
||
22 | public function __construct(IRequest $request) |
||
23 | { |
||
24 | $this->request = $request; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function detect(ProfileContainerInterface $profileContainer): ?ProfileInterface |
||
48 | } |
||
49 | } |
||
50 |