class IpAddress implements Stringable

Properties

protected null|4|6 $version

Methods

version(int $version)

Set the IP version.

string
__toString()

Convert the rule to a validation string.

Details

at line 31
IpAddress version(int $version)

Set the IP version.

Parameters

int $version

Return Value

IpAddress

Exceptions

InvalidArgumentException

at line 51
string __toString()

Convert the rule to a validation string.

Return Value

string