class IpTransformer implements DataTransformerInterface

Methods

string
transform(string[] $ips)

Transforms IP addresses from an array to a comma-separated string

string[]
reverseTransform(string $ips)

Transforms a comma-separated list of IP addresses to an array

Details

at line line 15
string transform(string[] $ips)

Transforms IP addresses from an array to a comma-separated string

Parameters

string[] $ips A list of IP addresses

Return Value

string

at line line 30
string[] reverseTransform(string $ips)

Transforms a comma-separated list of IP addresses to an array

Parameters

string $ips A comma-separated list of IP addresses

Return Value

string[]