Documentation

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
psalm-import-type

MailingListGdprArrayType from MailingListModel as ImportedMailingListGdprArrayType

psalm-type

MailingListMemberGdprArrayType = array{ list: ImportedMailingListGdprArrayType, email: string, }

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

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

getEmail()

Get the email address of this subscription

public getEmail() : string
Return values
string

setEmail()

Set the email address of this subscription

public setEmail(string $email) : void
Parameters
$email : string

toGdprArray()

public toGdprArray() : MailingListMemberGdprArrayType
Return values
MailingListMemberGdprArrayType

        
On this page

Search results