Signup
in package
uses
IdentifiableTrait, TimestampableTrait
Signup model.
Tags
Attributes
- #[DiscriminatorColumn]
- $name: 'type'
- $type: 'string'
- #[DiscriminatorMap]
- $value: ['user' => \Activity\Model\UserSignup::class, 'external' => \Activity\Model\ExternalSignup::class]
- #[Entity]
- #[HasLifecycleCallbacks]
- #[InheritanceType]
- $value: 'SINGLE_TABLE'
Table of Contents
Properties
- $createdAt : DateTime
- The date at which the entity was created.
- $drawn : bool
- Determines if the user was drawn
- $fieldValues : Collection<string|int, SignupFieldValue>
- Additional field values for this Signup.
- $id : int|null
- The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
- $present : bool
- Determines if the user was present or not
- $signupList : SignupList
- The SignupList the signup is for.
- $updatedAt : DateTime
- The date at which the entity was updated.
Methods
- __construct() : mixed
- getCreatedAt() : DateTime
- getEmail() : string|null
- Get the email address of the user whom signed up for the SignupList.
- getFieldValues() : Collection<string|int, SignupFieldValue>
- Get all the extra field values.
- getFullName() : string
- Get the full name of the user whom signed up for the SignupList.
- getId() : int|null
- Get the identifier of the object.
- getSignupList() : SignupList
- Get the SignupList which the user is signed up for.
- getUpdatedAt() : DateTime
- isDrawn() : bool
- Get draw status of the user
- isPresent() : bool
- Get presence of the user
- prePersist() : void
- Automatically fill in the `DateTime`s before the initial call to `persist()`.
- preUpdate() : void
- Automatically update the `updatedAt` `DateTime` when doing an update to the entity.
- setDrawn() : void
- Set the draw status of the user
- setId() : void
- Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
- setPresent() : void
- Set presence of the user
- setSignupList() : void
- Set the SignupList that the user signed up for.
- toFormArray() : array<string|int, int|string|null>
- toGdprArray() : SignupGdprArrayType
- setCreatedAt() : void
- setUpdatedAt() : void
Properties
$createdAt
The date at which the entity was created.
protected
DateTime
$createdAt
Attributes
- #[Column]
- $type: 'datetime'
$drawn
Determines if the user was drawn
protected
bool
$drawn
= false
Attributes
- #[Column]
- $type: 'boolean'
$fieldValues
Additional field values for this Signup.
protected
Collection<string|int, SignupFieldValue>
$fieldValues
Attributes
- #[OneToMany]
- $targetEntity: \Activity\Model\SignupFieldValue::class
- $mappedBy: 'signup'
- $cascade: ['persist', 'remove']
$id
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
protected
int|null
$id
= null
Attributes
- #[Column]
- $type: 'integer'
- #[GeneratedValue]
- $strategy: 'IDENTITY'
- #[Id]
$present
Determines if the user was present or not
protected
bool
$present
= false
Attributes
- #[Column]
- $type: 'boolean'
$signupList
The SignupList the signup is for.
protected
SignupList
$signupList
Attributes
- #[JoinColumn]
- $name: 'signuplist_id'
- $referencedColumnName: 'id'
- $nullable: false
- #[ManyToOne]
- $targetEntity: \Activity\Model\SignupList::class
- $inversedBy: 'signUps'
$updatedAt
The date at which the entity was updated.
protected
DateTime
$updatedAt
Attributes
- #[Column]
- $type: 'datetime'
Methods
__construct()
public
__construct() : mixed
getCreatedAt()
public
getCreatedAt() : DateTime
Return values
DateTimegetEmail()
Get the email address of the user whom signed up for the SignupList.
public
abstract getEmail() : string|null
Return values
string|nullgetFieldValues()
Get all the extra field values.
public
getFieldValues() : Collection<string|int, SignupFieldValue>
Return values
Collection<string|int, SignupFieldValue>getFullName()
Get the full name of the user whom signed up for the SignupList.
public
abstract getFullName() : string
Return values
stringgetId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetSignupList()
Get the SignupList which the user is signed up for.
public
getSignupList() : SignupList
Return values
SignupListgetUpdatedAt()
public
getUpdatedAt() : DateTime
Return values
DateTimeisDrawn()
Get draw status of the user
public
isDrawn() : bool
Return values
boolisPresent()
Get presence of the user
public
isPresent() : bool
Return values
boolprePersist()
Automatically fill in the `DateTime`s before the initial call to `persist()`.
public
prePersist() : void
Attributes
- #[PrePersist]
preUpdate()
Automatically update the `updatedAt` `DateTime` when doing an update to the entity.
public
preUpdate() : void
Attributes
- #[PreUpdate]
setDrawn()
Set the draw status of the user
public
setDrawn(bool $drawn) : void
Parameters
- $drawn : bool
setId()
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
public
setId(int|null $id) : void
Parameters
- $id : int|null
setPresent()
Set presence of the user
public
setPresent(bool $present) : void
Parameters
- $present : bool
setSignupList()
Set the SignupList that the user signed up for.
public
setSignupList(SignupList $signupList) : void
Parameters
- $signupList : SignupList
toFormArray()
public
toFormArray() : array<string|int, int|string|null>
Return values
array<string|int, int|string|null>toGdprArray()
public
toGdprArray() : SignupGdprArrayType
Return values
SignupGdprArrayTypesetCreatedAt()
private
setCreatedAt(DateTime $createdAt) : void
Parameters
- $createdAt : DateTime
setUpdatedAt()
private
setUpdatedAt(DateTime $updatedAt) : void
Parameters
- $updatedAt : DateTime