Code Duplication    Length = 180-180 lines in 3 locations

src/WebHemi/Data/Entity/AccessManagement/ResourceEntity.php 1 location

@@ 20-199 (lines=180) @@
17
/**
18
 * Class ResourceEntity.
19
 */
20
class ResourceEntity implements DataEntityInterface
21
{
22
    /** @var int */
23
    private $resourceId;
24
    /** @var string */
25
    private $name;
26
    /** @var string */
27
    private $title;
28
    /** @var string */
29
    private $description;
30
    /** @var bool */
31
    private $isReadOnly;
32
    /** @var DateTime */
33
    private $dateCreated;
34
    /** @var DateTime */
35
    private $dateModified;
36
37
    /**
38
     * Sets the value of the entity identifier.
39
     *
40
     * @param int $entityId
41
     * @return ResourceEntity
42
     */
43
    public function setKeyData($entityId)
44
    {
45
        $this->resourceId = $entityId;
46
47
        return $this;
48
    }
49
50
    /**
51
     * Gets the value of the entity identifier.
52
     *
53
     * @return int
54
     */
55
    public function getKeyData()
56
    {
57
        return $this->resourceId;
58
    }
59
60
    /**
61
     * @param int $resourceId
62
     *
63
     * @return ResourceEntity
64
     */
65
    public function setResourceId($resourceId)
66
    {
67
        $this->resourceId = $resourceId;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @return int
74
     */
75
    public function getResourceId()
76
    {
77
        return $this->resourceId;
78
    }
79
80
    /**
81
     * @param string $name
82
     *
83
     * @return ResourceEntity
84
     */
85
    public function setName($name)
86
    {
87
        $this->name = $name;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getName()
96
    {
97
        return $this->name;
98
    }
99
100
    /**
101
     * @param string $title
102
     *
103
     * @return ResourceEntity
104
     */
105
    public function setTitle($title)
106
    {
107
        $this->title = $title;
108
109
        return $this;
110
    }
111
112
    /**
113
     * @return string
114
     */
115
    public function getTitle()
116
    {
117
        return $this->title;
118
    }
119
120
    /**
121
     * @param string $description
122
     *
123
     * @return ResourceEntity
124
     */
125
    public function setDescription($description)
126
    {
127
        $this->description = $description;
128
129
        return $this;
130
    }
131
132
    /**
133
     * @return string
134
     */
135
    public function getDescription()
136
    {
137
        return $this->description;
138
    }
139
140
    /**
141
     * @param bool $state
142
     *
143
     * @return ResourceEntity
144
     */
145
    public function setReadOnly($state)
146
    {
147
        $this->isReadOnly = (bool) $state;
148
149
        return $this;
150
    }
151
152
    /**
153
     * @return bool
154
     */
155
    public function getReadOnly()
156
    {
157
        return $this->isReadOnly;
158
    }
159
160
    /**
161
     * @param DateTime $dateCreated
162
     *
163
     * @return ResourceEntity
164
     */
165
    public function setDateCreated(DateTime $dateCreated)
166
    {
167
        $this->dateCreated = $dateCreated;
168
169
        return $this;
170
    }
171
172
    /**
173
     * @return DateTime
174
     */
175
    public function getDateCreated()
176
    {
177
        return $this->dateCreated;
178
    }
179
180
    /**
181
     * @param DateTime $dateModified
182
     *
183
     * @return ResourceEntity
184
     */
185
    public function setDateModified(DateTime $dateModified)
186
    {
187
        $this->dateModified = $dateModified;
188
189
        return $this;
190
    }
191
192
    /**
193
     * @return DateTime
194
     */
195
    public function getDateModified()
196
    {
197
        return $this->dateModified;
198
    }
199
}
200

src/WebHemi/Data/Entity/ApplicationEntity.php 1 location

@@ 19-198 (lines=180) @@
16
/**
17
 * Class ApplicationEntity.
18
 */
19
class ApplicationEntity implements DataEntityInterface
20
{
21
    /** @var int */
22
    private $applicationId;
23
    /** @var string */
24
    private $name;
25
    /** @var string */
26
    private $title;
27
    /** @var string */
28
    private $description;
29
    /** @var bool */
30
    private $isReadOnly;
31
    /** @var DateTime */
32
    private $dateCreated;
33
    /** @var DateTime */
34
    private $dateModified;
35
36
    /**
37
     * Sets the value of the entity identifier.
38
     *
39
     * @param int $entityId
40
     * @return ApplicationEntity
41
     */
42
    public function setKeyData($entityId)
43
    {
44
        $this->applicationId = $entityId;
45
46
        return $this;
47
    }
48
49
    /**
50
     * Gets the value of the entity identifier.
51
     *
52
     * @return int
53
     */
54
    public function getKeyData()
55
    {
56
        return $this->applicationId;
57
    }
58
59
    /**
60
     * @param int $applicationId
61
     *
62
     * @return ApplicationEntity
63
     */
64
    public function setApplicationId($applicationId)
65
    {
66
        $this->applicationId = $applicationId;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @return int
73
     */
74
    public function getApplicationId()
75
    {
76
        return $this->applicationId;
77
    }
78
79
    /**
80
     * @param string $name
81
     *
82
     * @return ApplicationEntity
83
     */
84
    public function setName($name)
85
    {
86
        $this->name = $name;
87
88
        return $this;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function getName()
95
    {
96
        return $this->name;
97
    }
98
99
    /**
100
     * @param string $title
101
     *
102
     * @return ApplicationEntity
103
     */
104
    public function setTitle($title)
105
    {
106
        $this->title = $title;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getTitle()
115
    {
116
        return $this->title;
117
    }
118
119
    /**
120
     * @param string $description
121
     *
122
     * @return ApplicationEntity
123
     */
124
    public function setDescription($description)
125
    {
126
        $this->description = $description;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @return string
133
     */
134
    public function getDescription()
135
    {
136
        return $this->description;
137
    }
138
139
    /**
140
     * @param bool $state
141
     *
142
     * @return ApplicationEntity
143
     */
144
    public function setReadOnly($state)
145
    {
146
        $this->isReadOnly = (bool) $state;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @return bool
153
     */
154
    public function getReadOnly()
155
    {
156
        return $this->isReadOnly;
157
    }
158
159
    /**
160
     * @param DateTime $dateCreated
161
     *
162
     * @return ApplicationEntity
163
     */
164
    public function setDateCreated(DateTime $dateCreated)
165
    {
166
        $this->dateCreated = $dateCreated;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @return DateTime
173
     */
174
    public function getDateCreated()
175
    {
176
        return $this->dateCreated;
177
    }
178
179
    /**
180
     * @param DateTime $dateModified
181
     *
182
     * @return ApplicationEntity
183
     */
184
    public function setDateModified(DateTime $dateModified)
185
    {
186
        $this->dateModified = $dateModified;
187
188
        return $this;
189
    }
190
191
    /**
192
     * @return DateTime
193
     */
194
    public function getDateModified()
195
    {
196
        return $this->dateModified;
197
    }
198
}
199

src/WebHemi/Data/Entity/User/UserGroupEntity.php 1 location

@@ 20-199 (lines=180) @@
17
/**
18
 * Class UserGroupEntity.
19
 */
20
class UserGroupEntity implements DataEntityInterface
21
{
22
    /** @var int */
23
    private $userGroupId;
24
    /** @var string */
25
    private $name;
26
    /** @var string */
27
    private $title;
28
    /** @var string */
29
    private $description;
30
    /** @var bool */
31
    private $isReadOnly;
32
    /** @var DateTime */
33
    private $dateCreated;
34
    /** @var DateTime */
35
    private $dateModified;
36
37
    /**
38
     * Sets the value of the entity identifier.
39
     *
40
     * @param int $entityId
41
     * @return UserGroupEntity
42
     */
43
    public function setKeyData($entityId)
44
    {
45
        $this->userGroupId = $entityId;
46
47
        return $this;
48
    }
49
50
    /**
51
     * Gets the value of the entity identifier.
52
     *
53
     * @return int
54
     */
55
    public function getKeyData()
56
    {
57
        return $this->userGroupId;
58
    }
59
60
    /**
61
     * @param int $userGroupId
62
     *
63
     * @return UserGroupEntity
64
     */
65
    public function setUserGroupId($userGroupId)
66
    {
67
        $this->userGroupId = $userGroupId;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @return int
74
     */
75
    public function getUserGroupId()
76
    {
77
        return $this->userGroupId;
78
    }
79
80
    /**
81
     * @param string $name
82
     *
83
     * @return UserGroupEntity
84
     */
85
    public function setName($name)
86
    {
87
        $this->name = $name;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getName()
96
    {
97
        return $this->name;
98
    }
99
100
    /**
101
     * @param string $title
102
     *
103
     * @return UserGroupEntity
104
     */
105
    public function setTitle($title)
106
    {
107
        $this->title = $title;
108
109
        return $this;
110
    }
111
112
    /**
113
     * @return string
114
     */
115
    public function getTitle()
116
    {
117
        return $this->title;
118
    }
119
120
    /**
121
     * @param string $description
122
     *
123
     * @return UserGroupEntity
124
     */
125
    public function setDescription($description)
126
    {
127
        $this->description = $description;
128
129
        return $this;
130
    }
131
132
    /**
133
     * @return string
134
     */
135
    public function getDescription()
136
    {
137
        return $this->description;
138
    }
139
140
    /**
141
     * @param bool $state
142
     *
143
     * @return UserGroupEntity
144
     */
145
    public function setReadOnly($state)
146
    {
147
        $this->isReadOnly = (bool) $state;
148
149
        return $this;
150
    }
151
152
    /**
153
     * @return bool
154
     */
155
    public function getReadOnly()
156
    {
157
        return $this->isReadOnly;
158
    }
159
160
    /**
161
     * @param DateTime $dateCreated
162
     *
163
     * @return UserGroupEntity
164
     */
165
    public function setDateCreated(DateTime $dateCreated)
166
    {
167
        $this->dateCreated = $dateCreated;
168
169
        return $this;
170
    }
171
172
    /**
173
     * @return DateTime
174
     */
175
    public function getDateCreated()
176
    {
177
        return $this->dateCreated;
178
    }
179
180
    /**
181
     * @param DateTime $dateModified
182
     *
183
     * @return UserGroupEntity
184
     */
185
    public function setDateModified(DateTime $dateModified)
186
    {
187
        $this->dateModified = $dateModified;
188
189
        return $this;
190
    }
191
192
    /**
193
     * @return DateTime
194
     */
195
    public function getDateModified()
196
    {
197
        return $this->dateModified;
198
    }
199
}
200