public function Url::setPort

Set the port part of the URL

Parameters

int $port Port to set:

Return value

Url

1 call to Url::setPort()
Url::setHost in drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php
Set the host of the request.

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php, line 235

Class

Url
Parses and generates URLs based on URL parts. In favor of performance, URL parts are not validated.

Namespace

Guzzle\Http

Code

public function setPort($port) {
  $this->port = $port;
  return $this;
}