trait MemberAware (View source)

Allows any class to hold Member state

Methods

public
void
setMemberContext(Member|null $member)

Set the Member for the current context

public
Member|null
getMemberContext()

Get the Member for the current context either from a previously set value or the current user

Details

void setMemberContext(Member|null $member)

Set the Member for the current context

Parameters

Member|null $member

Return Value

void

Member|null getMemberContext()

Get the Member for the current context either from a previously set value or the current user

Return Value

Member|null