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