SignupField
in package
uses
IdentifiableTrait
SignupField model.
Tags
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
__construct()
public
__construct() : mixed
getId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetMaximumValue()
public
getMaximumValue() : int|null
Return values
int|nullgetMinimumValue()
public
getMinimumValue() : int|null
Return values
int|nullgetName()
public
getName() : ActivityLocalisedText
Return values
ActivityLocalisedTextgetOptions()
public
getOptions() : Collection<string|int, SignupOption>
Return values
Collection<string|int, SignupOption>getSignupList()
public
getSignupList() : SignupList
Return values
SignupListgetType()
public
getType() : int
Return values
intisSensitive()
public
isSensitive() : bool
Return values
boolsetId()
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
setName()
public
setName(ActivityLocalisedText $name) : void
Parameters
- $name : ActivityLocalisedText
setSignupList()
public
setSignupList(SignupList $signupList) : void
Parameters
- $signupList : SignupList
setType()
public
setType(int $type) : void
Parameters
- $type : int
toArray()
Returns an associative array representation of this object.
public
toArray() : SignupFieldArrayType
Return values
SignupFieldArrayTypetoGdprArray()
public
toGdprArray() : SignupFieldGdprArrayType