• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/uri.php
  • Класс: BitrixMainWebUri
  • Вызов: Uri::withPort
public function withPort(?int $port): UriInterface
{
	$new = clone $this;
	$new->port = $port;

	return $new;
}