| Total Complexity | 9 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 23 | class URLType extends StringType |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Determine if URL CAN be external. |
||
| 27 | * |
||
| 28 | * @var bool |
||
| 29 | */ |
||
| 30 | protected $external = false; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritDoc |
||
| 34 | * |
||
| 35 | * @throws \InvalidArgumentException |
||
| 36 | */ |
||
| 37 | 104 | public function getValue() |
|
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Return if URL can be external. |
||
| 65 | * |
||
| 66 | * @return bool |
||
| 67 | */ |
||
| 68 | 90 | public function isExternal(): bool |
|
| 73 |