isAbsolute(); } /** * @param string $value * @return bool */ public static function uriReference(string $value): bool { if ($value === '') { return true; } return Uri::parse($value) !== null; } /** * @param string $value * @return bool */ public static function uriTemplate(string $value): bool { if ($value === '') { return true; } if (UriTemplate::isTemplate($value)) { return true; } return Uri::parse($value) !== null; } }