class IpAddress implements Stringable (View source)

Properties

protected 4|6|null $version

Methods

version(int $version)

Set the IP version.

string
__toString()

Convert the rule to a validation string.

Details

IpAddress version(int $version)

Set the IP version.

Parameters

int $version

Return Value

IpAddress

Exceptions

InvalidArgumentException

string __toString()

Convert the rule to a validation string.

Return Value

string