| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function retrieveTokenHeaders(JWTInterface $jwt, int $component, array &$protectedHeader, array &$unprotectedHeader): void |
||
| 36 | { |
||
| 37 | if (!$jwt instanceof JWS) { |
||
| 38 | return; |
||
| 39 | } |
||
| 40 | |||
| 41 | if ($component > $jwt->countSignatures()) { |
||
| 42 | throw new \InvalidArgumentException('Unknown signature index.'); |
||
| 43 | } |
||
| 44 | $protectedHeader = $jwt->getSignature($component)->getProtectedHeaders(); |
||
| 45 | $unprotectedHeader = $jwt->getSignature($component)->getHeaders(); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |