Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | final class LimitingFunction implements LimitingPolicy |
||
10 | { |
||
11 | /** |
||
12 | * @psalm-var callable(ServerRequestInterface): string |
||
13 | */ |
||
14 | private $receiver; |
||
15 | |||
16 | /** |
||
17 | * @psalm-param callable(ServerRequestInterface): string $receiver |
||
18 | */ |
||
19 | 2 | public function __construct(callable $receiver) |
|
22 | 2 | } |
|
23 | |||
24 | 2 | public function fingerprint(ServerRequestInterface $request): string |
|
36 |