subscriber = $subscriber; } public function getId(): int { $id = $this->subscriber->getId(); if (!$id) { throw new InvalidStateException(); } return $id; } public function getEmail(): string { return $this->subscriber->getEmail(); } public function getStatus(): string { return $this->subscriber->getStatus(); } public function isWpUser(): bool { return $this->subscriber->isWPUser(); } public function getWpUserId(): ?int { return $this->subscriber->getWpUserId(); } public function getSubscriber(): SubscriberEntity { return $this->subscriber; } }