public function setFragment($fragment)
{
if (preg_match(self::PATTERN_MATCH_FRAGMENT, $fragment) === 1) {
$this->fragment = $fragment;
} else {
throw new \InvalidArgumentException('"' . $fragment . '" is not valid fragment as part of a URI.', 1184071252);
}
}