user = $user; $this->itemName = $itemName; $this->linkTarget = $linkTarget; $this->state = $state; $this->createdTimestamp = $createdTimestamp; $this->notifiedTimestamp = $notifiedTimestamp; } public function getUserIdentity(): UserIdentity { return $this->user; } public function getItemName(): string { return $this->itemName; } public function getLinkTarget(): LinkTarget { return $this->linkTarget; } /** * Get the creation timestamp of this entry. */ public function getCreatedTimestamp(): ?string { return $this->createdTimestamp; } /** * Get the notification timestamp of this entry. */ public function getNotificationTimestamp(): ?string { return $this->notifiedTimestamp; } /** * Get the subscription status of this entry. * * @return int One of SubscriptionStore::STATE_* constants */ public function getState(): int { return $this->state; } /** * Check if the notification is muted */ public function isMuted(): bool { return $this->state === SubscriptionStore::STATE_UNSUBSCRIBED; } }