SubscriberStore
Corex\Newsletter\Subscriber\SubscriberStore · interface · Add-ons layer
Persistence for subscribers. The interface keeps the subscription service headless-testable; the WordPress-backed implementation uses the custom-table repository.
Public API
Section titled “Public API”findByEmail(string $email): ?array
Section titled “findByEmail(string $email): ?array”create(string $email, array $topics): int
Section titled “create(string $email, array $topics): int”setStatus(int $id, string $status): void
Section titled “setStatus(int $id, string $status): void”confirmedForTopics(array $topics): array
Section titled “confirmedForTopics(array $topics): array”Confirmed (non-suppressed) subscribers whose topics intersect $topics.