Documentation

SignupFieldValue
in package
uses IdentifiableTrait

SignupFieldValue model.

Tags
psalm-import-type

SignupOptionGdprArrayType from SignupOption as ImportedSignupOptionGdprArrayType

psalm-type

SignupFieldValueGdprArrayType = array{ id: int, value: ?string, option: ?ImportedSignupOptionGdprArrayType, }

Attributes
#[Entity]

Table of Contents

Properties

$field  : SignupField
Field which the value belongs to.
$id  : int|null
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
$option  : SignupOption|null
The option chosen.
$signup  : Signup
Signup which the value belongs to.
$value  : string|null
The value of the associated field, is not an option.

Methods

getField()  : SignupField
getId()  : int|null
Get the identifier of the object.
getOption()  : SignupOption|null
getSignup()  : Signup
getValue()  : string|null
setField()  : void
Set the field.
setId()  : void
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
setOption()  : void
setSignup()  : void
Set the signup.
setValue()  : void
Set the value.
toGdprArray()  : SignupFieldValueGdprArrayType

Properties

$field

Field which the value belongs to.

protected SignupField $field
Attributes
#[JoinColumn]
$name: 'field_id'
$referencedColumnName: 'id'
$nullable: false
#[ManyToOne]
$targetEntity: \Activity\Model\SignupField::class

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

$option

The option chosen.

protected SignupOption|null $option = null
Attributes
#[JoinColumn]
$name: 'option_id'
$referencedColumnName: 'id'
#[ManyToOne]
$targetEntity: \Activity\Model\SignupOption::class

$signup

Signup which the value belongs to.

protected Signup $signup
Attributes
#[JoinColumn]
$name: 'signup_id'
$referencedColumnName: 'id'
$nullable: false
#[ManyToOne]
$targetEntity: \Activity\Model\Signup::class
$inversedBy: 'fieldValues'

$value

The value of the associated field, is not an option.

protected string|null $value = null
Attributes
#[Column]
$type: 'string'
$nullable: true

Methods

getId()

Get the identifier of the object.

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

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

setValue()

Set the value.

public setValue(string|null $value) : void
Parameters
$value : string|null

toGdprArray()

public toGdprArray() : SignupFieldValueGdprArrayType
Return values
SignupFieldValueGdprArrayType

        
On this page

Search results