IpHostInterface
extends
HostInterface
in
Table of Contents
Methods
- __toString() : string
- Returns the instance string representation.
- getIp() : string|null
- Returns the IP component If the Host is an IP address.
- getIpVersion() : string|null
- Returns the IP version.
- getUriComponent() : string
- Returns the instance string representation with its optional URI delimiters.
- hasZoneIdentifier() : bool
- Tells whether the host has a ZoneIdentifier.
- isDomain() : bool
- Tells whether the host is a domain name.
- isIp() : bool
- Tells whether the host is an IP Address.
- isIpFuture() : bool
- Tells whether the host is an IPv6 address.
- isIpv4() : bool
- Tells whether the host is an IPv4 address.
- isIpv6() : bool
- Tells whether the host is an IPv6 address.
- isRegisteredName() : bool
- Tells whether the host is a registered name.
- jsonSerialize() : string|null
- Returns the instance json representation.
- toAscii() : string|null
- Returns the ascii representation.
- toString() : string
- Returns the instance string representation.
- toUnicode() : string|null
- Returns the unicode representation.
- value() : string|null
- Returns the instance string representation.
- withoutZoneIdentifier() : self
- Returns a host without its zone identifier according to RFC6874.
Methods
__toString()
Returns the instance string representation.
public
__toString() : string
If the instance is defined, the value returned MUST be percent-encoded, but MUST NOT double-encode any characters. To determine what characters to encode, please refer to RFC 3986, Sections 2 and 3.
If the instance is not defined, an empty string is returned
Return values
stringgetIp()
Returns the IP component If the Host is an IP address.
public
getIp() : string|null
If the host is a not an IP this method will return null
Return values
string|nullgetIpVersion()
Returns the IP version.
public
getIpVersion() : string|null
If the host is a not an IP this method will return null
Return values
string|nullgetUriComponent()
Returns the instance string representation with its optional URI delimiters.
public
getUriComponent() : string
The value returned MUST be percent-encoded, but MUST NOT double-encode any characters. To determine what characters to encode, please refer to RFC 3986, Sections 2 and 3.
If the instance is not defined, an empty string is returned
Return values
stringhasZoneIdentifier()
Tells whether the host has a ZoneIdentifier.
public
hasZoneIdentifier() : bool
Tags
Return values
boolisDomain()
Tells whether the host is a domain name.
public
isDomain() : bool
Return values
boolisIp()
Tells whether the host is an IP Address.
public
isIp() : bool
Return values
boolisIpFuture()
Tells whether the host is an IPv6 address.
public
isIpFuture() : bool
Return values
boolisIpv4()
Tells whether the host is an IPv4 address.
public
isIpv4() : bool
Return values
boolisIpv6()
Tells whether the host is an IPv6 address.
public
isIpv6() : bool
Return values
boolisRegisteredName()
Tells whether the host is a registered name.
public
isRegisteredName() : bool
Return values
booljsonSerialize()
Returns the instance json representation.
public
jsonSerialize() : string|null
If the instance is defined, the value returned MUST be percent-encoded, but MUST NOT double-encode any characters. To determine what characters to encode, please refer to RFC 3986 or RFC 1738.
If the instance is not defined, null is returned
Return values
string|nulltoAscii()
Returns the ascii representation.
public
toAscii() : string|null
Return values
string|nulltoString()
Returns the instance string representation.
public
toString() : string
If the instance is defined, the value returned MUST be percent-encoded, but MUST NOT double-encode any characters. To determine what characters to encode, please refer to RFC 3986, Sections 2 and 3.
If the instance is not defined, an empty string is returned
Return values
stringtoUnicode()
Returns the unicode representation.
public
toUnicode() : string|null
Return values
string|nullvalue()
Returns the instance string representation.
public
value() : string|null
If the instance is defined, the value returned MUST be percent-encoded, but MUST NOT double-encode any characters. To determine what characters to encode, please refer to RFC 3986, Sections 2 and 3.
If the instance is not defined null is returned
Return values
string|nullwithoutZoneIdentifier()
Returns a host without its zone identifier according to RFC6874.
public
withoutZoneIdentifier() : self
This method MUST retain the state of the current instance, and return an instance without the host zone identifier according to RFC6874