NewUser
in package
User model.
Attributes
- #[Entity]
Table of Contents
Properties
- $code : string
- The user's activation code.
- $lidnr : int
- The membership number.
- $member : Member
- User's member.
- $time : DateTime|null
- Registration attempt timestamp.
Methods
- __construct() : mixed
- getCode() : string
- Get the activation code.
- getLidnr() : int
- Get the membership number.
- getMember() : Member
- Get the member.
- getTime() : DateTime|null
- Get the registration time.
- setCode() : void
- Set the activation code.
- setLidnr() : void
- Set the user's membership number.
- setTime() : void
- Set the registration time.
Properties
$code
The user's activation code.
protected
string
$code
Attributes
- #[Column]
- $type: 'string'
$lidnr
The membership number.
protected
int
$lidnr
Attributes
- #[Column]
- $type: 'integer'
- #[Id]
$member
User's member.
protected
Member
$member
Attributes
- #[JoinColumn]
- $name: 'lidnr'
- $referencedColumnName: 'lidnr'
- $nullable: false
- #[OneToOne]
- $targetEntity: \Decision\Model\Member::class
$time
Registration attempt timestamp.
protected
DateTime|null
$time
= null
Attributes
- #[Column]
- $type: 'datetime'
- $nullable: true
Methods
__construct()
public
__construct(Member $member) : mixed
Parameters
- $member : Member
getCode()
Get the activation code.
public
getCode() : string
Return values
stringgetLidnr()
Get the membership number.
public
getLidnr() : int
Return values
intgetMember()
Get the member.
public
getMember() : Member
Return values
MembergetTime()
Get the registration time.
public
getTime() : DateTime|null
Return values
DateTime|nullsetCode()
Set the activation code.
public
setCode(string $code) : void
Parameters
- $code : string
setLidnr()
Set the user's membership number.
public
setLidnr(int $lidnr) : void
Parameters
- $lidnr : int
setTime()
Set the registration time.
public
setTime(DateTime|null $time) : void
Parameters
- $time : DateTime|null