1 | <?php |
||
26 | class FieldValue extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
||
27 | { |
||
28 | /** |
||
29 | * Value |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $value = ''; |
||
34 | |||
35 | /** |
||
36 | * The type of the value |
||
37 | * |
||
38 | * @var int |
||
39 | */ |
||
40 | protected $valueType = FieldValueType::TYPE_TEXT; |
||
41 | |||
42 | /** |
||
43 | * Field |
||
44 | * |
||
45 | * @var \DERHANSEN\SfEventMgt\Domain\Model\Registration\Field |
||
46 | */ |
||
47 | protected $field = null; |
||
48 | |||
49 | /** |
||
50 | * Registration |
||
51 | * |
||
52 | * @var Registration |
||
53 | */ |
||
54 | protected $registration = null; |
||
55 | |||
56 | /** |
||
57 | * Returns value depending on the valueType |
||
58 | * |
||
59 | * @return string|array |
||
60 | */ |
||
61 | public function getValue() |
||
69 | |||
70 | /** |
||
71 | * Sets value |
||
72 | * |
||
73 | * @param string $value |
||
74 | * @return void |
||
75 | */ |
||
76 | public function setValue($value) |
||
80 | |||
81 | /** |
||
82 | * Returns field |
||
83 | * |
||
84 | * @return \DERHANSEN\SfEventMgt\Domain\Model\Registration\Field |
||
85 | */ |
||
86 | public function getField() |
||
90 | |||
91 | /** |
||
92 | * Sets field |
||
93 | * |
||
94 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Registration\Field $field |
||
95 | * @return void |
||
96 | */ |
||
97 | public function setField($field) |
||
101 | |||
102 | /** |
||
103 | * Returns registration |
||
104 | * |
||
105 | * @return Registration |
||
106 | */ |
||
107 | public function getRegistration() |
||
111 | |||
112 | /** |
||
113 | * Sets registration |
||
114 | * |
||
115 | * @param Registration $registration |
||
116 | * @return void |
||
117 | */ |
||
118 | public function setRegistration($registration) |
||
122 | |||
123 | /** |
||
124 | * Sets value type |
||
125 | * |
||
126 | * @return int |
||
127 | */ |
||
128 | public function getValueType() |
||
132 | |||
133 | /** |
||
134 | * Returns value type |
||
135 | * |
||
136 | * @param int $valueType |
||
137 | */ |
||
138 | public function setValueType($valueType) |
||
142 | } |
||
143 |