Port
Table of Contents
- $iP : string|null
- Host IP address that the container's port is mapped to.
- $privatePort : int|null
- Port on the container.
- $publicPort : int|null
- Port exposed on the host.
- $type : string|null
- getIP() : string|null
- Host IP address that the container's port is mapped to.
- getPrivatePort() : int|null
- Port on the container.
- getPublicPort() : int|null
- Port exposed on the host.
- getType() : string|null
- setIP() : self
- Host IP address that the container's port is mapped to.
- setPrivatePort() : self
- Port on the container.
- setPublicPort() : self
- Port exposed on the host.
- setType() : self
Properties
$iP
Host IP address that the container's port is mapped to.
protected
string|null
$iP
$privatePort
Port on the container.
protected
int|null
$privatePort
$publicPort
Port exposed on the host.
protected
int|null
$publicPort
$type
protected
string|null
$type
Methods
getIP()
Host IP address that the container's port is mapped to.
public
getIP() : string|null
Return values
string|null —getPrivatePort()
Port on the container.
public
getPrivatePort() : int|null
Return values
int|null —getPublicPort()
Port exposed on the host.
public
getPublicPort() : int|null
Return values
int|null —getType()
public
getType() : string|null
Return values
string|null —setIP()
Host IP address that the container's port is mapped to.
public
setIP(string|null $iP) : self
Parameters
- $iP : string|null
Return values
self —setPrivatePort()
Port on the container.
public
setPrivatePort(int|null $privatePort) : self
Parameters
- $privatePort : int|null
Return values
self —setPublicPort()
Port exposed on the host.
public
setPublicPort(int|null $publicPort) : self
Parameters
- $publicPort : int|null
Return values
self —setType()
public
setType(string|null $type) : self
Parameters
- $type : string|null