Documentation

Member
in package

Member model.

Tags
psalm-type

MemberGdprArrayType = array{ lidnr: int, email: ?string, fullName: string, lastName: string, middleName: string, initials: string, firstName: string, birth: string, generation: int, type: string, paid: int, changedOn: string, membershipEndsOn: ?string, expiration: string, supremum: ?string, hidden: bool, deleted: bool, }

Attributes
#[Entity]

Table of Contents

Properties

$addresses  : Collection<string|int, Address>
Addresses of this member.
$authenticationKey  : string|null
$birth  : DateTime
Member birth date.
$boardInstallations  : Collection<string|int, BoardMember>
Board memberships.
$changedOn  : DateTime
Last changed date of membership.
$deleted  : bool
Determines if a member is deleted. A deleted member is a member whose basic info needs to be retained to ensure that all decisions that mention this member can be kept (i.e., administrative purposes). This value is only set when deleting a member and cannot be altered via the interface.
$email  : string|null
Member's email address.
$expiration  : DateTime
The date on which the membership of the member is set to expire and will therefore have to be renewed, which happens either automatically or has to be done manually, as set forth in the articles of association and internal regulations.
$firstName  : string
First name.
$generation  : int
Generation.
$hidden  : bool
Stores whether a member should be 'hidden'.
$initials  : string
Initials.
$installations  : Collection<string|int, Installation>
Installations of this member.
$keyGrantings  : Collection<string|int, Keyholder>
Keyholdership.
$lastName  : string
Member's last name.
$lidnr  : int
The user.
$lists  : Collection<string|int, MailingList>
Memberships of mailing lists.
$membershipEndsOn  : DateTime|null
Date when the real membership ("ordinary" or "external") of the member will have ended, in other words, from this date onwards they are "graduate". If `null`, the expiration is rolling and will be silently renewed if the member still meets the requirements as set forth in the articles of association and internal regulations.
$middleName  : string
Middle name.
$organInstallations  : Collection<string|int, OrganMember>
Organ memberships.
$paid  : int
How much the member has paid for membership. 0 by default.
$supremum  : string|null
If the member receives a 'supremum'.
$tags  : Collection<string|int, Tag>
Member tags.
$type  : MembershipTypes
Member type.

Methods

__construct()  : mixed
addAddress()  : void
Add an address.
addAddresses()  : void
Add multiple addresses.
addList()  : void
Add a mailing list subscription.
addLists()  : void
Add multiple mailing lists.
clearAddresses()  : void
Clear all addresses.
clearLists()  : void
Clear the lists.
getAddresses()  : Collection<string|int, Address>
Get all addresses.
getAuthenticationKey()  : string|null
getBirth()  : DateTime
Get the birth date.
getBoardInstallations()  : Collection<string|int, BoardMember>
Get the board installations.
getChangedOn()  : DateTime
Get the date of the last membership change.
getCurrentBoardInstallation()  : BoardMember|null
Get the current board the member is part of.
getCurrentOrganInstallations()  : Collection<string|int, OrganMember>
Get the organ installations of organs that the member is currently part of.
getDeleted()  : bool
Get if the member is deleted.
getEmail()  : string|null
Get the member's email address.
getExpiration()  : DateTime
Get the expiration date.
getFirstName()  : string
Get the member's first name.
getFullName()  : string
Assemble the member's full name.
getGeneration()  : int
Get the generation.
getHidden()  : bool
Get if the member is hidden.
getInitials()  : string
Get the member's initials.
getInstallations()  : Collection<string|int, Installation>
Get the installations.
getKeyGrantings()  : Collection<string|int, Keyholder>
Get keyholderships.
getLastName()  : string
Get the member's last name.
getLidnr()  : int
Get the membership number.
getLists()  : Collection<string|int, MailingList>
Get mailing list subscriptions.
getMembershipEndsOn()  : DateTime|null
Get the date on which the membership of the member will have ended (i.e., they have become "graduate").
getMiddleName()  : string
Get the member's middle name.
getOrganInstallations()  : Collection<string|int, OrganMember>
Get the organ installations.
getPaid()  : int
Get how much has been paid.
getSupremum()  : string|null
Get if the member wants a supremum.
getTags()  : Collection<string|int, Tag>
Get the tags.
getType()  : MembershipTypes
Get the member type.
is18Plus()  : bool
isActive()  : bool
Returns whether the member is currently part of any organs.
isBoardMember()  : bool
Returns true the member is currently installed as a board member and false otherwise.
isExpired()  : bool
isKeyholder()  : bool
Returns true if the member is currently granted a key code (that is not withdrawn prematurely).
setAuthenticationKey()  : void
setBirth()  : void
Set the birthdate.
setChangedOn()  : void
Set the date of the last membership change.
setDeleted()  : void
Set if the member is deleted.
setEmail()  : void
Set the member's email address.
setExpiration()  : void
Set the expiration date.
setFirstName()  : void
Set the member's first name.
setGeneration()  : void
Set the generation.
setHidden()  : void
Set if the member is hidden.
setInitials()  : void
Set the member's initials.
setLastName()  : void
Set the member's last name.
setLidnr()  : void
Set the lidnr.
setMembershipEndsOn()  : void
Set the date on which the membership of the member will have ended (i.e., they have become "graduate").
setMiddleName()  : void
Set the member's middle name.
setPaid()  : void
Set how much has been paid.
setSupremum()  : void
Set if the member wants a supremum.
setType()  : void
Set the member type.
toGdprArray()  : MemberGdprArrayType
Convert most relevant items to array.
isCurrentBoard()  : bool
Check if this is a current board member.

Properties

$addresses

Addresses of this member.

protected Collection<string|int, Address> $addresses
Attributes
#[OneToMany]
$targetEntity: \Decision\Model\Address::class
$mappedBy: 'member'
$cascade: ['persist']

$authenticationKey

protected string|null $authenticationKey = null
Attributes
#[Column]
$type: 'string'
$nullable: true

$birth

Member birth date.

protected DateTime $birth
Attributes
#[Column]
$type: 'date'

$boardInstallations

Board memberships.

protected Collection<string|int, BoardMember> $boardInstallations
Attributes
#[OneToMany]
$targetEntity: \Decision\Model\BoardMember::class
$mappedBy: 'member'

$changedOn

Last changed date of membership.

protected DateTime $changedOn
Attributes
#[Column]
$type: 'date'

$deleted

Determines if a member is deleted. A deleted member is a member whose basic info needs to be retained to ensure that all decisions that mention this member can be kept (i.e., administrative purposes). This value is only set when deleting a member and cannot be altered via the interface.

protected bool $deleted = false

Additionally, this flag can be used to filter deleted members in external services (e.g., GEWISWEB).

Attributes
#[Column]
$type: 'boolean'
$options: ['default' => false]

$email

Member's email address.

protected string|null $email
Attributes
#[Column]
$type: 'string'
$nullable: true

$expiration

The date on which the membership of the member is set to expire and will therefore have to be renewed, which happens either automatically or has to be done manually, as set forth in the articles of association and internal regulations.

protected DateTime $expiration
Attributes
#[Column]
$type: 'date'

$firstName

First name.

protected string $firstName
Attributes
#[Column]
$type: 'string'

$generation

Generation.

protected int $generation

This is the year that this member became a GEWIS member. This is not a academic year, but rather a calendar year.

Attributes
#[Column]
$type: 'integer'

$hidden

Stores whether a member should be 'hidden'.

protected bool $hidden = false

Hidden is implemented in gewisweb to lock logins and hide the birthday on the landing page. It can be used for deleted members and members that are deceased but whose profile should be kept.

Attributes
#[Column]
$type: 'boolean'
$options: ['default' => false]

$initials

Initials.

protected string $initials
Attributes
#[Column]
$type: 'string'

$installations

Installations of this member.

protected Collection<string|int, Installation> $installations
Attributes
#[OneToMany]
$targetEntity: \Decision\Model\SubDecision\Installation::class
$mappedBy: 'member'

$keyGrantings

Keyholdership.

protected Collection<string|int, Keyholder> $keyGrantings
Attributes
#[OneToMany]
$targetEntity: \Decision\Model\Keyholder::class
$mappedBy: 'member'

$lastName

Member's last name.

protected string $lastName
Attributes
#[Column]
$type: 'string'

$lidnr

The user.

protected int $lidnr
Attributes
#[Column]
$type: 'integer'
#[Id]
#[JoinColumn]
$name: 'lidnr'
$referencedColumnName: 'lidnr'
#[OneToOne]
$targetEntity: \User\Model\User::class

$lists

Memberships of mailing lists.

protected Collection<string|int, MailingList> $lists
Attributes
#[InverseJoinColumn]
$name: 'name'
$referencedColumnName: 'name'
#[JoinColumn]
$name: 'lidnr'
$referencedColumnName: 'lidnr'
#[JoinTable]
$name: 'members_mailinglists'
#[ManyToMany]
$targetEntity: \Decision\Model\MailingList::class
$inversedBy: 'members'

$membershipEndsOn

Date when the real membership ("ordinary" or "external") of the member will have ended, in other words, from this date onwards they are "graduate". If `null`, the expiration is rolling and will be silently renewed if the member still meets the requirements as set forth in the articles of association and internal regulations.

protected DateTime|null $membershipEndsOn = null
Attributes
#[Column]
$type: 'date'
$nullable: true

$middleName

Middle name.

protected string $middleName
Attributes
#[Column]
$type: 'string'

$organInstallations

Organ memberships.

protected Collection<string|int, OrganMember> $organInstallations
Attributes
#[OneToMany]
$targetEntity: \Decision\Model\OrganMember::class
$mappedBy: 'member'

$paid

How much the member has paid for membership. 0 by default.

protected int $paid = 0
Attributes
#[Column]
$type: 'integer'

$supremum

If the member receives a 'supremum'.

protected string|null $supremum = null
Attributes
#[Column]
$type: 'string'
$nullable: true

$tags

Member tags.

protected Collection<string|int, Tag> $tags
Attributes
#[OneToMany]
$targetEntity: \Photo\Model\Tag::class
$mappedBy: 'member'
$fetch: 'EXTRA_LAZY'

$type

Member type.

protected MembershipTypes $type

This can be one of the following, as defined by the GEWIS statuten:

  • ordinary
  • external
  • graduate
  • honorary

You can find the GEWIS statuten here: https://gewis.nl/vereniging/statuten/statuten.

See artikel 7.

Attributes
#[Column]
$type: 'string'
$enumType: \Decision\Model\Enums\MembershipTypes::class

Methods

__construct()

public __construct() : mixed

addAddress()

Add an address.

public addAddress(Address $address) : void
Parameters
$address : Address

addAddresses()

Add multiple addresses.

public addAddresses(array<string|int, Address$addresses) : void
Parameters
$addresses : array<string|int, Address>

addList()

Add a mailing list subscription.

public addList(MailingList $list) : void

Note that this is the owning side.

Parameters
$list : MailingList

addLists()

Add multiple mailing lists.

public addLists(array<string|int, MailingList$lists) : void
Parameters
$lists : array<string|int, MailingList>

clearAddresses()

Clear all addresses.

public clearAddresses() : void

clearLists()

Clear the lists.

public clearLists() : void

getAddresses()

Get all addresses.

public getAddresses() : Collection<string|int, Address>
Return values
Collection<string|int, Address>

getAuthenticationKey()

public getAuthenticationKey() : string|null
Return values
string|null

getBirth()

Get the birth date.

public getBirth() : DateTime
Return values
DateTime

getBoardInstallations()

Get the board installations.

public getBoardInstallations() : Collection<string|int, BoardMember>
Return values
Collection<string|int, BoardMember>

getChangedOn()

Get the date of the last membership change.

public getChangedOn() : DateTime
Return values
DateTime

getCurrentBoardInstallation()

Get the current board the member is part of.

public getCurrentBoardInstallation() : BoardMember|null
Return values
BoardMember|null

getCurrentOrganInstallations()

Get the organ installations of organs that the member is currently part of.

public getCurrentOrganInstallations() : Collection<string|int, OrganMember>
Return values
Collection<string|int, OrganMember>

getDeleted()

Get if the member is deleted.

public getDeleted() : bool
Return values
bool

getEmail()

Get the member's email address.

public getEmail() : string|null
Return values
string|null

getExpiration()

Get the expiration date.

public getExpiration() : DateTime
Return values
DateTime

getFirstName()

Get the member's first name.

public getFirstName() : string
Return values
string

getFullName()

Assemble the member's full name.

public getFullName() : string
Return values
string

getGeneration()

Get the generation.

public getGeneration() : int
Return values
int

getHidden()

Get if the member is hidden.

public getHidden() : bool
Return values
bool

getInitials()

Get the member's initials.

public getInitials() : string
Return values
string

getInstallations()

Get the installations.

public getInstallations() : Collection<string|int, Installation>
Return values
Collection<string|int, Installation>

getKeyGrantings()

Get keyholderships.

public getKeyGrantings() : Collection<string|int, Keyholder>
Return values
Collection<string|int, Keyholder>

getLastName()

Get the member's last name.

public getLastName() : string
Return values
string

getLidnr()

Get the membership number.

public getLidnr() : int
Return values
int

getLists()

Get mailing list subscriptions.

public getLists() : Collection<string|int, MailingList>
Return values
Collection<string|int, MailingList>

getMembershipEndsOn()

Get the date on which the membership of the member will have ended (i.e., they have become "graduate").

public getMembershipEndsOn() : DateTime|null
Return values
DateTime|null

getMiddleName()

Get the member's middle name.

public getMiddleName() : string
Return values
string

getOrganInstallations()

Get the organ installations.

public getOrganInstallations() : Collection<string|int, OrganMember>
Return values
Collection<string|int, OrganMember>

getPaid()

Get how much has been paid.

public getPaid() : int
Return values
int

getSupremum()

Get if the member wants a supremum.

public getSupremum() : string|null
Return values
string|null

getTags()

Get the tags.

public getTags() : Collection<string|int, Tag>
Return values
Collection<string|int, Tag>

is18Plus()

public is18Plus() : bool
Return values
bool

isActive()

Returns whether the member is currently part of any organs.

public isActive() : bool
Return values
bool

isBoardMember()

Returns true the member is currently installed as a board member and false otherwise.

public isBoardMember() : bool
Return values
bool

isExpired()

public isExpired() : bool
Return values
bool

isKeyholder()

Returns true if the member is currently granted a key code (that is not withdrawn prematurely).

public isKeyholder() : bool
Return values
bool

setAuthenticationKey()

public setAuthenticationKey(string|null $authenticationKey) : void
Parameters
$authenticationKey : string|null

setBirth()

Set the birthdate.

public setBirth(DateTime $birth) : void
Parameters
$birth : DateTime

setChangedOn()

Set the date of the last membership change.

public setChangedOn(DateTime $changedOn) : void
Parameters
$changedOn : DateTime

setDeleted()

Set if the member is deleted.

public setDeleted(bool $deleted) : void
Parameters
$deleted : bool

setEmail()

Set the member's email address.

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

setExpiration()

Set the expiration date.

public setExpiration(DateTime $expiration) : void
Parameters
$expiration : DateTime

setFirstName()

Set the member's first name.

public setFirstName(string $firstName) : void
Parameters
$firstName : string

setGeneration()

Set the generation.

public setGeneration(int $generation) : void
Parameters
$generation : int

setHidden()

Set if the member is hidden.

public setHidden(bool $hidden) : void
Parameters
$hidden : bool

setInitials()

Set the member's initials.

public setInitials(string $initials) : void
Parameters
$initials : string

setLastName()

Set the member's last name.

public setLastName(string $lastName) : void
Parameters
$lastName : string

setLidnr()

Set the lidnr.

public setLidnr(int $lidnr) : void
Parameters
$lidnr : int

setMembershipEndsOn()

Set the date on which the membership of the member will have ended (i.e., they have become "graduate").

public setMembershipEndsOn(DateTime|null $membershipEndsOn) : void
Parameters
$membershipEndsOn : DateTime|null

setMiddleName()

Set the member's middle name.

public setMiddleName(string $middleName) : void
Parameters
$middleName : string

setPaid()

Set how much has been paid.

public setPaid(int $paid) : void
Parameters
$paid : int

setSupremum()

Set if the member wants a supremum.

public setSupremum(string|null $supremum) : void
Parameters
$supremum : string|null

toGdprArray()

Convert most relevant items to array.

public toGdprArray() : MemberGdprArrayType
Return values
MemberGdprArrayType

isCurrentBoard()

Check if this is a current board member.

protected isCurrentBoard(BoardMember $boardMember) : bool
Parameters
$boardMember : BoardMember
Return values
bool

        
On this page

Search results