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