Sets the options for this validator
Parameters: | array|Traversable – |
---|---|
Throws ExceptionInvalidArgumentException: | |
If there is any kind of IP allowed or $options is not an array or Traversable. | |
Return type: | AbstractValidator |
Returns true if and only if $value is a valid IP address
Parameters: | mixed – |
---|---|
Return type: | bool |
Validates an IPv4 address
Parameters: | string – |
---|---|
Return type: | bool |