mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 15:53:13 +08:00
Updated to readonly public props on as many models as possible
This commit is contained in:
@@ -89,10 +89,10 @@ class Visit extends AbstractEntity implements JsonSerializable
|
||||
|
||||
private function hydrateFromVisitor(Visitor $visitor, bool $anonymize = true): void
|
||||
{
|
||||
$this->userAgent = $visitor->getUserAgent();
|
||||
$this->referer = $visitor->getReferer();
|
||||
$this->remoteAddr = $this->processAddress($anonymize, $visitor->getRemoteAddress());
|
||||
$this->visitedUrl = $visitor->getVisitedUrl();
|
||||
$this->userAgent = $visitor->userAgent;
|
||||
$this->referer = $visitor->referer;
|
||||
$this->remoteAddr = $this->processAddress($anonymize, $visitor->remoteAddress);
|
||||
$this->visitedUrl = $visitor->visitedUrl;
|
||||
$this->potentialBot = $visitor->isPotentialBot();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user