| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function fingerprint(ServerRequestInterface $request): string |
||
| 25 | { |
||
| 26 | $id = ($this->receiver)($request); |
||
| 27 | |||
| 28 | /** @psalm-suppress DocblockTypeContradiction */ |
||
| 29 | if (!is_string($id) || '' === $id) { |
||
| 30 | throw new \InvalidArgumentException('The id must be a non-empty-string.'); |
||
| 31 | } |
||
| 32 | |||
| 33 | return $id; |
||
| 34 | } |
||
| 36 |