Code Duplication    Length = 235-242 lines in 2 locations

htdocs/src/AppBundle/Entity/PageBlock.php 1 location

@@ 15-249 (lines=235) @@
12
 * @ORM\Table(name="page_blocks")
13
 * @ORM\Entity(repositoryClass="AppBundle\Repository\PageRepository")
14
 */
15
class PageBlock
16
{
17
    /**
18
     * @var int
19
     *
20
     * @ORM\Column(name="id", type="integer")
21
     * @ORM\Id
22
     * @ORM\GeneratedValue(strategy="AUTO")
23
     */
24
    private $id;
25
26
    /**
27
     * @var int
28
     *
29
     * @ORM\Column(name="page_group_id", type="integer")
30
     */
31
    private $pageGroupId;
32
33
    /**
34
     * @var string
35
     *
36
     * @ORM\Column(name="title", type="string", length=255)
37
     */
38
    private $title;
39
40
    /**
41
     * @var string
42
     *
43
     * @ORM\Column(name="html", type="text")
44
     */
45
    private $html;
46
47
    /**
48
     * @var int
49
     *
50
     * @ORM\Column(name="position", type="integer")
51
     */
52
    private $position;
53
54
    /**
55
     * @var \DateTime
56
     *
57
     * @ORM\Column(name="last_changed", type="datetime")
58
     */
59
    private $lastChanged;
60
61
    /**
62
     * @var int
63
     *
64
     * @ORM\Column(name="active", type="integer")
65
     */
66
    private $active;
67
68
    /**
69
     * Many PageBlocks have one PageGroup.
70
     *
71
     * @var integer PageGroup
72
     *
73
     * @ManyToOne(targetEntity="PageGroup", inversedBy="pageBlocks")
74
     * @JoinColumn(name="page_group_id", referencedColumnName="id")
75
     */
76
    private $pageGroup;
77
78
    /**
79
     * Get id
80
     *
81
     * @return int
82
     */
83
    public function getId()
84
    {
85
        return $this->id;
86
    }
87
88
    /**
89
     * Set pageGroupId
90
     *
91
     * @param integer $pageGroupId
92
     *
93
     * @return PageBlock
94
     */
95
    public function setPageGroupId($pageGroupId)
96
    {
97
        $this->pageGroupId = $pageGroupId;
98
99
        return $this;
100
    }
101
102
    /**
103
     * Get pageGroupId
104
     *
105
     * @return int
106
     */
107
    public function getPageGroupId()
108
    {
109
        return $this->pageGroupId;
110
    }
111
112
    /**
113
     * Set title
114
     *
115
     * @param string $title
116
     *
117
     * @return PageBlock
118
     */
119
    public function setTitle($title)
120
    {
121
        $this->title = $title;
122
123
        return $this;
124
    }
125
126
    /**
127
     * Get title
128
     *
129
     * @return string
130
     */
131
    public function getTitle()
132
    {
133
        return $this->title;
134
    }
135
136
    /**
137
     * Set html
138
     *
139
     * @param string $html
140
     *
141
     * @return PageBlock
142
     */
143
    public function setHtml($html)
144
    {
145
        $this->html = $html;
146
147
        return $this;
148
    }
149
150
    /**
151
     * Get html
152
     *
153
     * @return string
154
     */
155
    public function getHtml()
156
    {
157
        return $this->html;
158
    }
159
160
    /**
161
     * Set position
162
     *
163
     * @param integer $position
164
     *
165
     * @return PageBlock
166
     */
167
    public function setPosition($position)
168
    {
169
        $this->position = $position;
170
171
        return $this;
172
    }
173
174
    /**
175
     * Get position
176
     *
177
     * @return int
178
     */
179
    public function getPosition()
180
    {
181
        return $this->position;
182
    }
183
184
    /**
185
     * Set lastChanged
186
     *
187
     * @param \DateTime $lastChanged
188
     *
189
     * @return PageBlock
190
     */
191
    public function setLastChanged($lastChanged)
192
    {
193
        $this->lastChanged = $lastChanged;
194
195
        return $this;
196
    }
197
198
    /**
199
     * Get lastChanged
200
     *
201
     * @return \DateTime
202
     */
203
    public function getLastChanged()
204
    {
205
        return $this->lastChanged;
206
    }
207
208
    /**
209
     * Set active
210
     *
211
     * @param integer $active
212
     *
213
     * @return PageBlock
214
     */
215
    public function setActive($active)
216
    {
217
        $this->active = $active;
218
219
        return $this;
220
    }
221
222
    /**
223
     * Get active
224
     *
225
     * @return int
226
     */
227
    public function getActive()
228
    {
229
        return $this->active;
230
    }
231
232
    /**
233
     * @return PageGroup
234
     */
235
    public function getPageGroup()
236
    {
237
        return $this->pageGroup;
238
    }
239
240
    /**
241
     * @param PageGroup $pageGroup
242
     *
243
     * @return void
244
     */
245
    public function setPageGroup(PageGroup $pageGroup)
246
    {
247
        $this->pageGroup = $pageGroup;
248
    }
249
}
250

htdocs/src/AppBundle/Entity/PageGroup.php 1 location

@@ 15-256 (lines=242) @@
12
 * @ORM\Table(name="page_groups")
13
 * @ORM\Entity(repositoryClass="AppBundle\Repository\PageRepository")
14
 */
15
class PageGroup
16
{
17
    /**
18
     * @var int
19
     *
20
     * @ORM\Column(name="id", type="integer")
21
     * @ORM\Id
22
     * @ORM\GeneratedValue(strategy="AUTO")
23
     */
24
    private $id;
25
26
    /**
27
     * @var string
28
     *
29
     * @ORM\Column(name="slug", type="string", length=255, unique=true)
30
     */
31
    private $slug;
32
33
    /**
34
     * @var string
35
     *
36
     * @ORM\Column(name="meta_keywords", type="string", length=255, nullable=true)
37
     */
38
    private $metaKeywords;
39
40
    /**
41
     * @var string
42
     *
43
     * @ORM\Column(name="meta_description", type="string", length=255, nullable=true)
44
     */
45
    private $metaDescription;
46
47
    /**
48
     * @var string
49
     *
50
     * @ORM\Column(name="meta_social", type="text", nullable=true)
51
     */
52
    private $metaSocial;
53
54
    /**
55
     * @var \DateTime
56
     *
57
     * @ORM\Column(name="last_changed", type="datetime")
58
     */
59
    private $lastChanged;
60
61
    /**
62
     * @var bool
63
     *
64
     * @ORM\Column(name="active", type="boolean")
65
     */
66
    private $active;
67
68
    /**
69
     * One PageGroup has many PageBlocks.
70
     *
71
     * @var ArrayCollection
72
     *
73
     * @OneToMany(targetEntity="PageBlock", mappedBy="pageGroup")
74
     */
75
    private $pageBlocks;
76
77
    /**
78
     * PageGroup constructor.
79
     */
80
    public function __construct()
81
    {
82
        $this->pageBlocks = new ArrayCollection();
83
    }
84
85
    /**
86
     * Get id
87
     *
88
     * @return int
89
     */
90
    public function getId()
91
    {
92
        return $this->id;
93
    }
94
95
    /**
96
     * Set slug
97
     *
98
     * @param string $slug
99
     *
100
     * @return PageGroup
101
     */
102
    public function setSlug($slug)
103
    {
104
        $this->slug = $slug;
105
106
        return $this;
107
    }
108
109
    /**
110
     * Get slug
111
     *
112
     * @return string
113
     */
114
    public function getSlug()
115
    {
116
        return $this->slug;
117
    }
118
119
    /**
120
     * Set metaKeywords
121
     *
122
     * @param string $metaKeywords
123
     *
124
     * @return PageGroup
125
     */
126
    public function setMetaKeywords($metaKeywords)
127
    {
128
        $this->metaKeywords = $metaKeywords;
129
130
        return $this;
131
    }
132
133
    /**
134
     * Get metaKeywords
135
     *
136
     * @return string
137
     */
138
    public function getMetaKeywords()
139
    {
140
        return $this->metaKeywords;
141
    }
142
143
    /**
144
     * Set metaDescription
145
     *
146
     * @param string $metaDescription
147
     *
148
     * @return PageGroup
149
     */
150
    public function setMetaDescription($metaDescription)
151
    {
152
        $this->metaDescription = $metaDescription;
153
154
        return $this;
155
    }
156
157
    /**
158
     * Get metaDescription
159
     *
160
     * @return string
161
     */
162
    public function getMetaDescription()
163
    {
164
        return $this->metaDescription;
165
    }
166
167
    /**
168
     * Set metaSocial
169
     *
170
     * @param string $metaSocial
171
     *
172
     * @return PageGroup
173
     */
174
    public function setMetaSocial($metaSocial)
175
    {
176
        $this->metaSocial = $metaSocial;
177
178
        return $this;
179
    }
180
181
    /**
182
     * Get metaSocial
183
     *
184
     * @return string
185
     */
186
    public function getMetaSocial()
187
    {
188
        return $this->metaSocial;
189
    }
190
191
    /**
192
     * Set lastChanged
193
     *
194
     * @param \DateTime $lastChanged
195
     *
196
     * @return PageGroup
197
     */
198
    public function setLastChanged($lastChanged)
199
    {
200
        $this->lastChanged = $lastChanged;
201
202
        return $this;
203
    }
204
205
    /**
206
     * Get lastChanged
207
     *
208
     * @return \DateTime
209
     */
210
    public function getLastChanged()
211
    {
212
        return $this->lastChanged;
213
    }
214
215
    /**
216
     * Set active
217
     *
218
     * @param boolean $active
219
     *
220
     * @return PageGroup
221
     */
222
    public function setActive($active)
223
    {
224
        $this->active = $active;
225
226
        return $this;
227
    }
228
229
    /**
230
     * Get active
231
     *
232
     * @return bool
233
     */
234
    public function getActive()
235
    {
236
        return $this->active;
237
    }
238
239
    /**
240
     * @return ArrayCollection
241
     */
242
    public function getPageBlocks()
243
    {
244
        return $this->pageBlocks;
245
    }
246
247
    /**
248
     * @param ArrayCollection $pageBlocks
249
     *
250
     * @return void
251
     */
252
    public function setPageBlocks(ArrayCollection $pageBlocks)
253
    {
254
        $this->pageBlocks = $pageBlocks;
255
    }
256
}
257
258