Documentation

SignupField
in package
uses IdentifiableTrait

SignupField model.

Tags
psalm-type

SignupFieldArrayType = array{ id: int, sensitive: bool, name: ?string, nameEn: ?string, type: int, minimumValue: ?int, maximumValue: ?int, options: array<array-key, ?string>, optionsEn: array<array-key, ?string>, }

psalm-type

SignupFieldGdprArrayType = array{ id: int, sensitive: bool, name: ImportedLocalisedTextGdprArrayType, type: int, minimumValue: ?int, maximumValue: ?int, options: ?ImportedSignupOptionGdprArrayType[], }

psalm-import-type

LocalisedTextGdprArrayType from LocalisedTextModel as ImportedLocalisedTextGdprArrayType

psalm-import-type

SignupOptionGdprArrayType from SignupOption as ImportedSignupOptionGdprArrayType

Attributes
#[Entity]

Table of Contents

Properties

$id  : int|null
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
$isSensitive  : bool
Whether this SignupField is sensitive. If it is sensitive, it is only visible to the board and the organiser of the activity.
$maximumValue  : int|null
The maximal value constraint for the ``number'' type.
$minimumValue  : int|null
The minimal value constraint for the ``number'' type.
$name  : ActivityLocalisedText
The name of the SignupField.
$options  : Collection<string|int, SignupOption>
The allowed options for the SignupField of the ``option'' type.
$signupList  : SignupList
Activity that the SignupField belongs to.
$type  : int
The type of the SignupField.

Methods

__construct()  : mixed
getId()  : int|null
Get the identifier of the object.
getMaximumValue()  : int|null
getMinimumValue()  : int|null
getName()  : ActivityLocalisedText
getOptions()  : Collection<string|int, SignupOption>
getSignupList()  : SignupList
getType()  : int
isSensitive()  : bool
setId()  : void
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
setIsSensitive()  : void
setMaximumValue()  : void
setMinimumValue()  : void
setName()  : void
setSignupList()  : void
setType()  : void
toArray()  : SignupFieldArrayType
Returns an associative array representation of this object.
toGdprArray()  : SignupFieldGdprArrayType

Properties

$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]

$isSensitive

Whether this SignupField is sensitive. If it is sensitive, it is only visible to the board and the organiser of the activity.

protected bool $isSensitive = false
Attributes
#[Column]
$type: 'boolean'

$maximumValue

The maximal value constraint for the ``number'' type.

protected int|null $maximumValue = null
Attributes
#[Column]
$type: 'integer'
$nullable: true

$minimumValue

The minimal value constraint for the ``number'' type.

protected int|null $minimumValue = null
Attributes
#[Column]
$type: 'integer'
$nullable: true

$name

The name of the SignupField.

protected ActivityLocalisedText $name
Attributes
#[JoinColumn]
$name: 'name_id'
$referencedColumnName: 'id'
$nullable: false
#[OneToOne]
$targetEntity: \Activity\Model\ActivityLocalisedText::class
$cascade: ['persist']
$orphanRemoval: true

$options

The allowed options for the SignupField of the ``option'' type.

protected Collection<string|int, SignupOption> $options
Attributes
#[OneToMany]
$targetEntity: \Activity\Model\SignupOption::class
$mappedBy: 'field'
$orphanRemoval: true

$signupList

Activity that the SignupField belongs to.

protected SignupList $signupList
Attributes
#[JoinColumn]
$name: 'signuplist_id'
$referencedColumnName: 'id'
$nullable: false
#[ManyToOne]
$targetEntity: \Activity\Model\SignupList::class
$cascade: ['persist']
$inversedBy: 'fields'

$type

The type of the SignupField.

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

Methods

getId()

Get the identifier of the object.

public getId() : int|null
Tags
psalm-ignore-nullable-return
Return values
int|null

getMaximumValue()

public getMaximumValue() : int|null
Return values
int|null

getMinimumValue()

public getMinimumValue() : int|null
Return values
int|null

isSensitive()

public isSensitive() : bool
Return values
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

setIsSensitive()

public setIsSensitive(bool $isSensitive) : void
Parameters
$isSensitive : bool

setMaximumValue()

public setMaximumValue(int|null $maximumValue) : void
Parameters
$maximumValue : int|null

setMinimumValue()

public setMinimumValue(int|null $minimumValue) : void
Parameters
$minimumValue : int|null

setType()

public setType(int $type) : void
Parameters
$type : int

toArray()

Returns an associative array representation of this object.

public toArray() : SignupFieldArrayType
Return values
SignupFieldArrayType

toGdprArray()

public toGdprArray() : SignupFieldGdprArrayType
Return values
SignupFieldGdprArrayType

        
On this page

Search results