$visitor->ip()
Sets the ip address if provided or returns the ip of the current visitor otherwise
$visitor->ip(string $ip = null): string|Visitor|null
Parameters
| Name | Type | Default |
|---|---|---|
| $ip | string |
null |
Return type
string|Visitor|null