| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class HeaderFactory |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Construct header from string. |
||
| 18 | * |
||
| 19 | * @param string $header Header field string. |
||
| 20 | * @return Header Header generated based on the string. |
||
| 21 | * @throws InvalidHeader If the header is invalid. |
||
| 22 | */ |
||
| 23 | 25 | public static function fromString(string $header): Header |
|
| 41 |