MailingListMember
in package
Mailing List Member model (partial)
To allow having additional properties in the many-to-many association between MailingLists and Members we use this class as a connector.
Report assumes a full sync has happened (e.g. toBeDeleted entires don't exist)
Tags
Attributes
- #[Entity]
- #[UniqueConstraint]
- $name: 'mailinglistmember_unique_idx'
- $columns: ['mailingList', 'member', 'email']
Table of Contents
Properties
- $email : string
- Email address on the list
- $mailingList : MailingList
- Mailing list.
- $member : Member
- Member.
Methods
- __construct() : mixed
- getEmail() : string
- Get the email address of this subscription
- getMailingList() : MailingList
- Get the mailing list.
- getMember() : Member
- Get the member.
- setEmail() : void
- Set the email address of this subscription
- setMailingList() : void
- Set the mailing list.
- setMember() : void
- Set the member.
- toGdprArray() : MailingListMemberGdprArrayType
Properties
Email address on the list
private
string
$email
Attributes
- #[Column]
- $type: 'string'
- $nullable: false
- #[Id]
$mailingList
Mailing list.
private
MailingList
$mailingList
Attributes
- #[Id]
- #[JoinColumn]
- $name: 'mailingList'
- $referencedColumnName: 'name'
- #[ManyToOne]
- $targetEntity: \Decision\Model\MailingList::class
- $inversedBy: 'mailingListMemberships'
$member
Member.
private
Member
$member
Attributes
- #[Id]
- #[JoinColumn]
- $name: 'member'
- $referencedColumnName: 'lidnr'
- #[ManyToOne]
- $targetEntity: \Decision\Model\Member::class
- $inversedBy: 'mailingListMemberships'
Methods
__construct()
public
__construct() : mixed
getEmail()
Get the email address of this subscription
public
getEmail() : string
Return values
stringgetMailingList()
Get the mailing list.
public
getMailingList() : MailingList
Return values
MailingListgetMember()
Get the member.
public
getMember() : Member
Return values
MembersetEmail()
Set the email address of this subscription
public
setEmail(string $email) : void
Parameters
- $email : string
setMailingList()
Set the mailing list.
public
setMailingList(MailingList $mailingList) : void
Parameters
- $mailingList : MailingList
setMember()
Set the member.
public
setMember(Member $member) : void
Parameters
- $member : Member
toGdprArray()
public
toGdprArray() : MailingListMemberGdprArrayType