sharedWith = $sharedWith; return $this; } public function getSharedWith(): string { return $this->sharedWith; } public function setShareType(int $shareType): self { $this->shareType = $shareType; return $this; } public function getShareType(): int { return $this->shareType; } public function setFileId(int $fileId): self { $this->fileId = $fileId; return $this; } public function getFileId(): int { return $this->fileId; } public function setEntity(FederatedUser $entity): self { $this->entity = $entity; return $this; } public function getEntity(): ?FederatedUser { return $this->entity; } public function setFileTarget(string $fileTarget): self { $this->fileTarget = $fileTarget; return $this; } public function getFileTarget(): string { return $this->fileTarget; } public function setFileOwner(string $fileOwner): self { $this->fileOwner = $fileOwner; return $this; } public function getFileOwner(): string { return $this->fileOwner; } public function setFileLastUpdate(int $fileLastUpdate): self { $this->fileLastUpdate = $fileLastUpdate; return $this; } public function getFileLastUpdate(): int { return $this->fileLastUpdate; } public function setShareTime(int $shareTime): self { $this->shareTime = $shareTime; return $this; } public function getShareTime(): int { return $this->shareTime; } public function setShareCreator(string $shareCreator): self { $this->shareCreator = $shareCreator; return $this; } public function getShareCreator(): string { return $this->shareCreator; } public function importFromDatabase(array $data): IQueryRow { $this->setShareType($this->getInt('share_type', $data)) ->setSharedWith($this->get('share_with', $data)) ->setShareCreator($this->get('uid_initiator', $data)) ->setFileId($this->getInt('file_source', $data)) ->setFileOwner($this->get('uid_owner', $data)) ->setFileTarget($this->get('file_target', $data)) ->setShareTime($this->getInt('stime', $data)); return $this; } public function jsonSerialize(): array { return [ 'shareType' => $this->getShareType(), 'sharedWith' => $this->getSharedWith(), 'shareCreator' => $this->getShareCreator(), 'fileId' => $this->getFileId(), 'fileTarget' => $this->getFileTarget(), 'fileLastUpdate' => $this->getFileLastUpdate(), 'shareTime' => $this->getShareTime(), 'entity' => $this->getEntity() ]; } }