1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Webcook\Cms\CoreBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Page section entity. |
9
|
|
|
* |
10
|
|
|
* @ORM\Entity |
11
|
|
|
* @ORM\Table(name="PageSection") |
12
|
|
|
*/ |
13
|
|
|
class PageSection |
14
|
|
|
{ |
15
|
|
|
/** |
16
|
|
|
* @ORM\Column(name="id", type="integer", nullable=false) |
17
|
|
|
* @ORM\Id() |
18
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
19
|
|
|
*/ |
20
|
|
|
protected $id; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @ORM\ManyToOne(targetEntity="Page", inversedBy="sections") |
24
|
|
|
* @ORM\JoinColumn(name="page_id", referencedColumnName="id") |
25
|
|
|
*/ |
26
|
|
|
private $page; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* |
30
|
|
|
* @ORM\ManyToOne(targetEntity="Section") |
31
|
|
|
* @ORM\JoinColumn(name="section_id", referencedColumnName="id") |
32
|
|
|
*/ |
33
|
|
|
private $section; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @ORM\ManyToOne(targetEntity="ContentProvider") |
37
|
|
|
* @ORM\JoinColumn(name="content_provider_id", referencedColumnName="id") |
38
|
|
|
*/ |
39
|
|
|
private $contentProvider; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @ORM\Column(name="content_order", type="integer") |
43
|
|
|
*/ |
44
|
|
|
private $order; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* Gets the value of id. |
48
|
|
|
* |
49
|
|
|
* @return mixed |
50
|
|
|
*/ |
51
|
|
|
public function getId() |
52
|
|
|
{ |
53
|
|
|
return $this->id; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* Gets the value of order. |
58
|
|
|
* |
59
|
|
|
* @return mixed |
60
|
|
|
*/ |
61
|
3 |
|
public function getOrder() |
62
|
|
|
{ |
63
|
3 |
|
return $this->order; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* Sets the value of order. |
68
|
|
|
* |
69
|
|
|
* @param mixed $order the order |
70
|
|
|
* |
71
|
|
|
* @return self |
72
|
|
|
*/ |
73
|
22 |
|
public function setOrder($order) |
74
|
|
|
{ |
75
|
22 |
|
$this->order = $order; |
76
|
|
|
|
77
|
22 |
|
return $this; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* Gets the value of page. |
82
|
|
|
* |
83
|
|
|
* @return mixed |
84
|
|
|
*/ |
85
|
|
|
public function getPage() |
86
|
|
|
{ |
87
|
|
|
return $this->page; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* Sets the value of page. |
92
|
|
|
* |
93
|
|
|
* @param mixed $page the page |
94
|
|
|
* |
95
|
|
|
* @return self |
96
|
|
|
*/ |
97
|
22 |
|
public function setPage($page) |
98
|
|
|
{ |
99
|
22 |
|
$this->page = $page; |
100
|
|
|
|
101
|
22 |
|
return $this; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* Gets the value of section. |
106
|
|
|
* |
107
|
|
|
* @return mixed |
108
|
|
|
*/ |
109
|
3 |
|
public function getSection() |
110
|
|
|
{ |
111
|
3 |
|
return $this->section; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* Sets the value of section. |
116
|
|
|
* |
117
|
|
|
* @param mixed $section the section |
118
|
|
|
* |
119
|
|
|
* @return self |
120
|
|
|
*/ |
121
|
22 |
|
public function setSection($section) |
122
|
|
|
{ |
123
|
22 |
|
$this->section = $section; |
124
|
|
|
|
125
|
22 |
|
return $this; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* Gets the value of contentProvider. |
130
|
|
|
* |
131
|
|
|
* @return mixed |
132
|
|
|
*/ |
133
|
2 |
|
public function getContentProvider() |
134
|
|
|
{ |
135
|
2 |
|
return $this->contentProvider; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* Sets the value of contentProvider. |
140
|
|
|
* |
141
|
|
|
* @param mixed $contentProvider the content provider |
142
|
|
|
* |
143
|
|
|
* @return self |
144
|
|
|
*/ |
145
|
22 |
|
public function setContentProvider($contentProvider) |
146
|
|
|
{ |
147
|
22 |
|
$this->contentProvider = $contentProvider; |
148
|
|
|
|
149
|
22 |
|
return $this; |
150
|
|
|
} |
151
|
|
|
} |
152
|
|
|
|