| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class HeaderExtractor implements Extractor |
||
| 10 | { |
||
| 11 | private $name; |
||
| 12 | private $prefix; |
||
| 13 | |||
| 14 | public function __construct(string $name, string $prefix = null) |
||
| 15 | { |
||
| 16 | $this->name = $name; |
||
| 17 | $this->prefix = $prefix; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function extractKey(Request $request): ?string |
||
| 33 | } |
||
| 34 | } |
||
| 35 |