Total Complexity | 5 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 81.82% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class Matching implements Authentication |
||
19 | { |
||
20 | /** |
||
21 | * @var Authentication |
||
22 | */ |
||
23 | private $authentication; |
||
24 | |||
25 | /** |
||
26 | * @var CallbackRequestMatcher |
||
27 | */ |
||
28 | private $matcher; |
||
29 | |||
30 | public function __construct(Authentication $authentication, callable $matcher = null) |
||
40 | } |
||
41 | |||
42 | 5 | /** |
|
43 | 5 | * {@inheritdoc} |
|
44 | 5 | */ |
|
45 | public function authenticate(RequestInterface $request) |
||
52 | 1 | } |
|
53 | |||
54 | /** |
||
55 | 1 | * Creates a matching authentication for an URL. |
|
56 | * |
||
57 | * @param string $url |
||
58 | * |
||
59 | * @return self |
||
60 | */ |
||
61 | public static function createUrlMatcher(Authentication $authentication, $url) |
||
70 |