Ensured orphan visits are located ASAP when using swoole

This commit is contained in:
Alejandro Celaya
2021-02-09 20:25:28 +01:00
parent b01487ac91
commit ab9042db24
8 changed files with 57 additions and 39 deletions

View File

@@ -109,6 +109,11 @@ class Visit extends AbstractEntity implements JsonSerializable
return $this;
}
public function isOrphan(): bool
{
return $this->shortUrl === null;
}
public function jsonSerialize(): array
{
return [