CustomerNewsletterRepository
in
Interface CustomerNewsletterRepository
Table of Contents
- getSubscribedCustomers() : CustomerIds
- Returns all for newsletters subscribed customers.
- isCustomerSubscribed() : bool
- Checks if the given customer is subscribed for newsletters.
- subscribe() : void
- Subscribes the given customer from newsletters.
- unsubscribe() : void
- Unsubscribes the given customer from newsletters.
Methods
getSubscribedCustomers()
Returns all for newsletters subscribed customers.
public
getSubscribedCustomers() : CustomerIds
Return values
CustomerIds —isCustomerSubscribed()
Checks if the given customer is subscribed for newsletters.
public
isCustomerSubscribed(CustomerId $customerId) : bool
Parameters
- $customerId : CustomerId
Return values
bool —subscribe()
Subscribes the given customer from newsletters.
public
subscribe(CustomerId $customerId, CustomerId $adminId) : void
Parameters
- $customerId : CustomerId
- $adminId : CustomerId
Return values
void —unsubscribe()
Unsubscribes the given customer from newsletters.
public
unsubscribe(CustomerId $customerId) : void
Parameters
- $customerId : CustomerId