| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 2.5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function __construct(Authentication $authentication, callable $matcher = null) |
||
| 31 | { |
||
| 32 | if (is_null($matcher)) { |
||
| 33 | $matcher = function () { |
||
| 34 | 5 | return true; |
|
| 35 | }; |
||
| 36 | 5 | } |
|
| 37 | |||
| 38 | $this->authentication = $authentication; |
||
| 39 | $this->matcher = new CallbackRequestMatcher($matcher); |
||
| 40 | } |
||
| 70 |