$ip
$ip : integer|null
Client IP address of the end-user.
User Data is a base model for objects typically submitted by the end-user of the application.
setIp(integer|null $ip) : \Charcoal\Object\UserDataInterface
Set the client IP address.
integer|null | $ip | The remote IP at object creation. |
Chainable
setLang(string $lang) : \Charcoal\Object\UserDataInterface
Set the origin language.
string | $lang | The language code. |
If the argument is not a string.
Chainable
setOrigin(string $origin) : \Charcoal\Object\UserDataInterface
Set the origin of the object submission.
string | $origin | The source URL or identifier of the submission. |
If the argument is not a string.
Chainable
setTs(\DateTime|string|null $timestamp) : \Charcoal\Object\UserDataInterface
Set when the object was created.
\DateTime|string|null | $timestamp | The timestamp at object's creation. NULL is accepted and instances of DateTimeInterface are recommended; any other value will be converted (if possible) into one. |
If the timestamp is invalid.
Chainable