Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
23 | final class Scheme implements ComponentInterface |
||
24 | { |
||
25 | private const VALIDATION_REGEX = '/^(?:[A-Za-z][0-9A-Za-z\x2b\x2d\x2e]*)?$/'; |
||
26 | |||
27 | private string $value = ''; |
||
28 | |||
29 | /** |
||
30 | * @param mixed $value |
||
31 | * |
||
32 | * @throws InvalidArgumentException |
||
33 | */ |
||
34 | 113 | public function __construct($value) |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | 100 | public function getValue(): string |
|
62 |