public function setPath($path)
    {
        if (preg_match(self::PATTERN_MATCH_PATH, $path) !== 1) {
            throw new \InvalidArgumentException('"' . $path . '" is not valid path as part of a URI.', 1184071242);
        }

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

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

@param string $path The path
@return void
@throws \InvalidArgumentException
@deprecated Since Flow 5.1, use withPath instead
@see withPath()
Sets the path of the URI