\Bitrix\Main\Web\Uri public \Bitrix\Main\Web\Uri::setPath( string $path );
Non-static method sets path.