set('action', $action); return $this; } public function setUserId(string $userId): self { $this->set('userId', $userId); return $this; } public function setIpAddress(?string $ipAddress): self { $this->set('ipAddress', $ipAddress); return $this; } public function setAuthTokenId(?string $authTokenId): self { $this->set('authTokenId', $authTokenId); return $this; } public function setAuthLogRecordId(?string $authLogRecordId): self { $this->set('authLogRecordId', $authLogRecordId); return $this; } public function setTarget(LinkParent $target): self { $this->set('targetId', $target->getId()); $this->set('targetType', $target->getEntityType()); return $this; } }