Passed
Branch main (a47c5a)
by AOEPeople
15:53 queued 02:59
created

Tx_FeatureFlag_Domain_Model_Mapping   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 147
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 22
c 2
b 1
f 0
dl 0
loc 147
rs 10
wmc 14

14 Methods

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