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

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

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

@param string $fragment The fragment (aka "anchor")
@return void
@throws \InvalidArgumentException
@deprecated Since Flow 5.1, use withFragment instead
@see withFragment()
Sets the fragment in the URI