|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Aoe\FeatureFlag\Domain\Model; |
|
4
|
|
|
|
|
5
|
|
|
/*************************************************************** |
|
6
|
|
|
* Copyright notice |
|
7
|
|
|
* |
|
8
|
|
|
* (c) 2021 AOE GmbH <[email protected]> |
|
9
|
|
|
* |
|
10
|
|
|
* All rights reserved |
|
11
|
|
|
* |
|
12
|
|
|
* This script is part of the TYPO3 project. The TYPO3 project is |
|
13
|
|
|
* free software; you can redistribute it and/or modify |
|
14
|
|
|
* it under the terms of the GNU General Public License as published by |
|
15
|
|
|
* the Free Software Foundation; either version 3 of the License, or |
|
16
|
|
|
* (at your option) any later version. |
|
17
|
|
|
* |
|
18
|
|
|
* The GNU General Public License can be found at |
|
19
|
|
|
* http://www.gnu.org/copyleft/gpl.html. |
|
20
|
|
|
* |
|
21
|
|
|
* This script is distributed in the hope that it will be useful, |
|
22
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
23
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
24
|
|
|
* GNU General Public License for more details. |
|
25
|
|
|
* |
|
26
|
|
|
* This copyright notice MUST APPEAR in all copies of the script! |
|
27
|
|
|
***************************************************************/ |
|
28
|
|
|
|
|
29
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; |
|
30
|
|
|
|
|
31
|
|
|
class Mapping extends AbstractEntity |
|
32
|
|
|
{ |
|
33
|
|
|
/** |
|
34
|
|
|
* @var string |
|
35
|
|
|
*/ |
|
36
|
|
|
protected $tstamp; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* @var string |
|
40
|
|
|
*/ |
|
41
|
|
|
protected $crdate; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* @var \Aoe\FeatureFlag\Domain\Model\FeatureFlag |
|
45
|
|
|
*/ |
|
46
|
|
|
protected $featureFlag; |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @var int |
|
50
|
|
|
*/ |
|
51
|
|
|
protected $foreignTableUid; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @var string |
|
55
|
|
|
*/ |
|
56
|
|
|
protected $foreignTableName; |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @var int |
|
60
|
|
|
*/ |
|
61
|
|
|
protected $foreignTableColumn; |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* @var string |
|
65
|
|
|
*/ |
|
66
|
|
|
protected $behavior; |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* @param string $crdate |
|
70
|
|
|
*/ |
|
71
|
1 |
|
public function setCrdate($crdate) |
|
72
|
|
|
{ |
|
73
|
1 |
|
$this->crdate = $crdate; |
|
74
|
1 |
|
} |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* @return string |
|
78
|
|
|
*/ |
|
79
|
1 |
|
public function getCrdate() |
|
80
|
|
|
{ |
|
81
|
1 |
|
return $this->crdate; |
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* @param \Aoe\FeatureFlag\Domain\Model\FeatureFlag $featureFlag |
|
86
|
|
|
*/ |
|
87
|
2 |
|
public function setFeatureFlag(FeatureFlag $featureFlag) |
|
88
|
|
|
{ |
|
89
|
2 |
|
$this->featureFlag = $featureFlag; |
|
90
|
2 |
|
} |
|
91
|
|
|
|
|
92
|
|
|
/** |
|
93
|
|
|
* @return \Aoe\FeatureFlag\Domain\Model\FeatureFlag |
|
94
|
|
|
*/ |
|
95
|
2 |
|
public function getFeatureFlag() |
|
96
|
|
|
{ |
|
97
|
2 |
|
return $this->featureFlag; |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
/** |
|
101
|
|
|
* @param int $foreignTableColumn |
|
102
|
|
|
*/ |
|
103
|
1 |
|
public function setForeignTableColumn($foreignTableColumn) |
|
104
|
|
|
{ |
|
105
|
1 |
|
$this->foreignTableColumn = $foreignTableColumn; |
|
106
|
1 |
|
} |
|
107
|
|
|
|
|
108
|
|
|
/** |
|
109
|
|
|
* @return int |
|
110
|
|
|
*/ |
|
111
|
1 |
|
public function getForeignTableColumn() |
|
112
|
|
|
{ |
|
113
|
1 |
|
return $this->foreignTableColumn; |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* @param string $foreignTableName |
|
118
|
|
|
*/ |
|
119
|
1 |
|
public function setForeignTableName($foreignTableName) |
|
120
|
|
|
{ |
|
121
|
1 |
|
$this->foreignTableName = $foreignTableName; |
|
122
|
1 |
|
} |
|
123
|
|
|
|
|
124
|
|
|
/** |
|
125
|
|
|
* @return string |
|
126
|
|
|
*/ |
|
127
|
1 |
|
public function getForeignTableName() |
|
128
|
|
|
{ |
|
129
|
1 |
|
return $this->foreignTableName; |
|
130
|
|
|
} |
|
131
|
|
|
|
|
132
|
|
|
/** |
|
133
|
|
|
* @param int $foreignTableUid |
|
134
|
|
|
*/ |
|
135
|
1 |
|
public function setForeignTableUid($foreignTableUid) |
|
136
|
|
|
{ |
|
137
|
1 |
|
$this->foreignTableUid = $foreignTableUid; |
|
138
|
1 |
|
} |
|
139
|
|
|
|
|
140
|
|
|
/** |
|
141
|
|
|
* @return int |
|
142
|
|
|
*/ |
|
143
|
1 |
|
public function getForeignTableUid() |
|
144
|
|
|
{ |
|
145
|
1 |
|
return $this->foreignTableUid; |
|
146
|
|
|
} |
|
147
|
|
|
|
|
148
|
|
|
/** |
|
149
|
|
|
* @param string $tstamp |
|
150
|
|
|
*/ |
|
151
|
1 |
|
public function setTstamp($tstamp) |
|
152
|
|
|
{ |
|
153
|
1 |
|
$this->tstamp = $tstamp; |
|
154
|
1 |
|
} |
|
155
|
|
|
|
|
156
|
|
|
/** |
|
157
|
|
|
* @return string |
|
158
|
|
|
*/ |
|
159
|
1 |
|
public function getTstamp() |
|
160
|
|
|
{ |
|
161
|
1 |
|
return $this->tstamp; |
|
162
|
|
|
} |
|
163
|
|
|
|
|
164
|
|
|
/** |
|
165
|
|
|
* @param string $behavior |
|
166
|
|
|
*/ |
|
167
|
2 |
|
public function setBehavior($behavior) |
|
168
|
|
|
{ |
|
169
|
2 |
|
$this->behavior = (int) $behavior; |
|
170
|
2 |
|
} |
|
171
|
|
|
|
|
172
|
|
|
/** |
|
173
|
|
|
* @return int |
|
174
|
|
|
*/ |
|
175
|
2 |
|
public function getBehavior() |
|
176
|
|
|
{ |
|
177
|
2 |
|
return (int) $this->behavior; |
|
178
|
|
|
} |
|
179
|
|
|
} |
|
180
|
|
|
|