| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 23 | final class Fragment implements ComponentInterface |
||
| 24 | { |
||
| 25 | // phpcs:ignore Generic.Files.LineLength |
||
| 26 | private const NORMALIZATION_REGEX = '/(?:%[0-9A-Fa-f]{2}|[\x21\x24\x26-\x3b\x3d\x3f-\x5a\x5f\x61-\x7a\x7e])*|(.?)/u'; |
||
| 27 | |||
| 28 | private string $value = ''; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param mixed $value |
||
| 32 | * |
||
| 33 | * @throws InvalidArgumentException |
||
| 34 | */ |
||
| 35 | 49 | public function __construct($value) |
|
| 52 | 40 | ); |
|
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | 40 | public function getValue(): string |
|
| 65 |