1 | <?php declare(strict_types = 1); |
||
19 | class RequestMatcher implements RequestMatcherInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var Repository |
||
23 | */ |
||
24 | private $repository; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | private $matchUnsecured; |
||
30 | |||
31 | /** |
||
32 | * @param Repository $repository |
||
33 | * @param bool $matchUnsecured |
||
34 | */ |
||
35 | public function __construct(Repository $repository, bool $matchUnsecured = false) |
||
40 | |||
41 | /** |
||
42 | * @return boolean |
||
43 | */ |
||
44 | public function isMatchUnsecured(): bool |
||
48 | |||
49 | /** |
||
50 | * @param boolean $matchUnsecured |
||
51 | */ |
||
52 | public function setMatchUnsecured(bool $matchUnsecured) |
||
56 | |||
57 | /** |
||
58 | * @param Request $request |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function matches(Request $request) |
||
78 | } |
||
79 |