| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class LimitCallback implements LimitPolicyInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @psalm-var callable(ServerRequestInterface): string |
||
| 13 | */ |
||
| 14 | private $receiver; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @psalm-param callable(ServerRequestInterface): string $receiver |
||
| 18 | */ |
||
| 19 | public function __construct(callable $receiver) |
||
| 20 | { |
||
| 21 | $this->receiver = $receiver; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function fingerprint(ServerRequestInterface $request): string |
||
| 34 | } |
||
| 35 | } |
||
| 36 |