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(): ?string { return $this->createdTimestamp; } /** * Get the notification timestamp of this entry. * * @return string|null */ 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 * * @return bool */ public function isMuted(): bool { return $this->state === SubscriptionStore::STATE_UNSUBSCRIBED; } }