1 | <?php |
||
18 | class Campagne extends UtilisateurEntity |
||
19 | { |
||
20 | const DRAFT = 'draft'; |
||
21 | const PENDING = 'pending'; |
||
22 | const SENT = 'send'; |
||
23 | const CANCEL = 'cancel'; |
||
24 | const ERROR = 'error'; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | * |
||
29 | * @ORM\Column(name="id", type="integer") |
||
30 | * @ORM\Id |
||
31 | * @ORM\GeneratedValue(strategy="AUTO") |
||
32 | */ |
||
33 | protected $id; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | * |
||
38 | * @ORM\Column(name="name", type="string", length=255) |
||
39 | */ |
||
40 | protected $name; |
||
41 | |||
42 | /** |
||
43 | * @var bool |
||
44 | * |
||
45 | * @ORM\Column(name="deleted", type="boolean", options={"default": false}) |
||
46 | */ |
||
47 | protected $deleted; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | * |
||
52 | * @ORM\Column(name="status", type="string", length=255) |
||
53 | */ |
||
54 | protected $status; |
||
55 | |||
56 | /** |
||
57 | * @ORM\OneToMany( |
||
58 | * targetEntity="Event", |
||
59 | * mappedBy="campagne" |
||
60 | * ) |
||
61 | */ |
||
62 | protected $events; |
||
63 | |||
64 | /** |
||
65 | * @ORM\OneToMany( |
||
66 | * targetEntity="CampagneCible", |
||
67 | * mappedBy="campagne" |
||
68 | * ) |
||
69 | */ |
||
70 | protected $cibles; |
||
71 | |||
72 | /** |
||
73 | * Constructor |
||
74 | */ |
||
75 | public function __construct() |
||
82 | |||
83 | /** |
||
84 | * Get id. |
||
85 | * |
||
86 | * @return int |
||
87 | */ |
||
88 | public function getId() |
||
92 | |||
93 | /** |
||
94 | * Get name. |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | public function getName() |
||
102 | |||
103 | /** |
||
104 | * Set name. |
||
105 | * |
||
106 | * @param string $name |
||
107 | * |
||
108 | */ |
||
109 | public function setName($name) |
||
114 | |||
115 | /** |
||
116 | * Get status. |
||
117 | * |
||
118 | * @return string |
||
119 | */ |
||
120 | public function getStatus() |
||
124 | |||
125 | /** |
||
126 | * Set status. |
||
127 | * |
||
128 | * @param string $status |
||
129 | * |
||
130 | */ |
||
131 | public function setStatus($status) |
||
135 | |||
136 | /** |
||
137 | * Get deleted. |
||
138 | * |
||
139 | * @return bool |
||
140 | */ |
||
141 | public function getDeleted() |
||
145 | |||
146 | /** |
||
147 | * Set deleted. |
||
148 | * |
||
149 | * @param bool $deleted |
||
150 | * |
||
151 | */ |
||
152 | public function setDeleted($deleted) |
||
156 | |||
157 | /** |
||
158 | * Add event |
||
159 | * |
||
160 | * @param \Starkerxp\CampagneBundle\Entity\Event $event |
||
161 | * |
||
162 | * @return Campagne |
||
163 | */ |
||
164 | public function addEvent(\Starkerxp\CampagneBundle\Entity\Event $event) |
||
170 | |||
171 | /** |
||
172 | * Remove event |
||
173 | * |
||
174 | * @param \Starkerxp\CampagneBundle\Entity\Event $event |
||
175 | */ |
||
176 | public function removeEvent(\Starkerxp\CampagneBundle\Entity\Event $event) |
||
180 | |||
181 | /** |
||
182 | * Get events |
||
183 | * |
||
184 | * @return \Doctrine\Common\Collections\Collection |
||
185 | */ |
||
186 | public function getEvents() |
||
190 | |||
191 | /** |
||
192 | * Add cible |
||
193 | * |
||
194 | * @param \Starkerxp\CampagneBundle\Entity\CampagneCible $cible |
||
195 | * |
||
196 | * @return Campagne |
||
197 | */ |
||
198 | public function addCible(\Starkerxp\CampagneBundle\Entity\CampagneCible $cible) |
||
204 | |||
205 | /** |
||
206 | * Remove cible |
||
207 | * |
||
208 | * @param \Starkerxp\CampagneBundle\Entity\CampagneCible $cible |
||
209 | */ |
||
210 | public function removeCible(\Starkerxp\CampagneBundle\Entity\CampagneCible $cible) |
||
214 | |||
215 | /** |
||
216 | * Get cibles |
||
217 | * |
||
218 | * @return \Doctrine\Common\Collections\Collection |
||
219 | */ |
||
220 | public function getCibles() |
||
224 | } |
||
|
|||
225 |
This check marks files that end in a newline character, i.e. an empy line.