SignupFieldValue
in package
uses
IdentifiableTrait
SignupFieldValue model.
Tags
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
getField()
public
getField() : SignupField
Return values
SignupFieldgetId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetOption()
public
getOption() : SignupOption|null
Return values
SignupOption|nullgetSignup()
public
getSignup() : Signup
Return values
SignupgetValue()
public
getValue() : string|null
Return values
string|nullsetField()
Set the field.
public
setField(SignupField $field) : void
Parameters
- $field : SignupField
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
setOption()
public
setOption(SignupOption|null $option) : void
Parameters
- $option : SignupOption|null
setSignup()
Set the signup.
public
setSignup(Signup $signup) : void
Parameters
- $signup : Signup
setValue()
Set the value.
public
setValue(string|null $value) : void
Parameters
- $value : string|null
toGdprArray()
public
toGdprArray() : SignupFieldValueGdprArrayType