| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | trait HttpHeaderAuthTrait |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string the HTTP header name |
||
| 10 | */ |
||
| 11 | private $header = 'X-Api-Key'; |
||
| 12 | /** |
||
| 13 | * @var string a pattern to use to extract the HTTP authentication value |
||
| 14 | */ |
||
| 15 | private $pattern; |
||
| 16 | |||
| 17 | private function getAuthToken(ServerRequestInterface $request): ?string |
||
| 32 | } |
||
| 33 | } |