public function Uri::getPort in Lockr 7.3
Retrieve the port component of the URI.
If a port is present, and it is non-standard for the current scheme, this method MUST return it as an integer. If the port is the standard port used with the current scheme, this method SHOULD return null.
If no port is present, and no scheme is present, this method MUST return a null value.
If no port is present, but a scheme is present, this method MAY return the standard port for that scheme, but SHOULD return null.
Return value
null|int The URI port.
Overrides UriInterface::getPort
File
- vendor/
guzzlehttp/ psr7/ src/ Uri.php, line 402
Class
- Uri
- PSR-7 URI implementation.
Namespace
GuzzleHttp\Psr7Code
public function getPort() {
return $this->port;
}