1: <?php
2:
3:
4:
5:
6:
7: /**
8: * CommercialSupportIntervention
9: *
10: * @Table(name="COMMERCIAL_SUPPORT_INTERVENTION")
11: * @Entity
12: */
13: class CommercialSupportIntervention
14: {
15: /**
16: * @var datetime $date
17: *
18: * @Column(name="date", type="datetime")
19: */
20: private $date;
21:
22: /**
23: * @var datetime $end
24: *
25: * @Column(name="end", type="datetime")
26: */
27: private $end;
28:
29: /**
30: * @var integer $pause
31: *
32: * @Column(name="pause", type="integer")
33: */
34: private $pause;
35:
36: /**
37: * @var string $title
38: *
39: * @Column(name="title", type="string", length=120)
40: */
41: private $title;
42:
43: /**
44: * @var text $description
45: *
46: * @Column(name="description", type="text")
47: */
48: private $description;
49:
50: /**
51: * @var integer $period
52: *
53: * @Column(name="period", type="integer")
54: */
55: private $period;
56:
57: /**
58: * @var string $fileName
59: *
60: * @Column(name="file_name", type="string", length=50)
61: */
62: private $fileName;
63:
64: /**
65: * @var integer $id
66: *
67: * @Column(name="id", type="integer")
68: * @Id
69: * @GeneratedValue(strategy="IDENTITY")
70: */
71: private $id;
72:
73: /**
74: * @var CoreContacts
75: *
76: * @ManyToOne(targetEntity="CoreContacts")
77: * @JoinColumns({
78: * @JoinColumn(name="reported_by_contact_id", referencedColumnName="id")
79: * })
80: */
81: private $reportedByContact;
82:
83: /**
84: * @var CommercialSoldType
85: *
86: * @ManyToOne(targetEntity="CommercialSoldType")
87: * @JoinColumns({
88: * @JoinColumn(name="sold_type", referencedColumnName="code")
89: * })
90: */
91: private $soldType;
92:
93: /**
94: * @var CoreUsers
95: *
96: * @ManyToOne(targetEntity="CoreUsers")
97: * @JoinColumns({
98: * @JoinColumn(name="customer_user_id", referencedColumnName="id")
99: * })
100: */
101: private $customerUser;
102:
103: /**
104: * @var CommercialProject
105: *
106: * @ManyToOne(targetEntity="CommercialProject")
107: * @JoinColumns({
108: * @JoinColumn(name="project_id", referencedColumnName="id")
109: * })
110: */
111: private $project;
112:
113:
114: /**
115: * Set date
116: *
117: * @param datetime $date
118: * @return CommercialSupportIntervention
119: */
120: public function setDate($date)
121: {
122: $this->date = $date;
123: return $this;
124: }
125:
126: /**
127: * Get date
128: *
129: * @return datetime
130: */
131: public function getDate()
132: {
133: return $this->date;
134: }
135:
136: /**
137: * Set end
138: *
139: * @param datetime $end
140: * @return CommercialSupportIntervention
141: */
142: public function setEnd($end)
143: {
144: $this->end = $end;
145: return $this;
146: }
147:
148: /**
149: * Get end
150: *
151: * @return datetime
152: */
153: public function getEnd()
154: {
155: return $this->end;
156: }
157:
158: /**
159: * Set pause
160: *
161: * @param integer $pause
162: * @return CommercialSupportIntervention
163: */
164: public function setPause($pause)
165: {
166: $this->pause = $pause;
167: return $this;
168: }
169:
170: /**
171: * Get pause
172: *
173: * @return integer
174: */
175: public function getPause()
176: {
177: return $this->pause;
178: }
179:
180: /**
181: * Set title
182: *
183: * @param string $title
184: * @return CommercialSupportIntervention
185: */
186: public function setTitle($title)
187: {
188: $this->title = $title;
189: return $this;
190: }
191:
192: /**
193: * Get title
194: *
195: * @return string
196: */
197: public function getTitle()
198: {
199: return $this->title;
200: }
201:
202: /**
203: * Set description
204: *
205: * @param text $description
206: * @return CommercialSupportIntervention
207: */
208: public function setDescription($description)
209: {
210: $this->description = $description;
211: return $this;
212: }
213:
214: /**
215: * Get description
216: *
217: * @return text
218: */
219: public function getDescription()
220: {
221: return $this->description;
222: }
223:
224: /**
225: * Set period
226: *
227: * @param integer $period
228: * @return CommercialSupportIntervention
229: */
230: public function setPeriod($period)
231: {
232: $this->period = $period;
233: return $this;
234: }
235:
236: /**
237: * Get period
238: *
239: * @return integer
240: */
241: public function getPeriod()
242: {
243: return $this->period;
244: }
245:
246: /**
247: * Set fileName
248: *
249: * @param string $fileName
250: * @return CommercialSupportIntervention
251: */
252: public function setFileName($fileName)
253: {
254: $this->fileName = $fileName;
255: return $this;
256: }
257:
258: /**
259: * Get fileName
260: *
261: * @return string
262: */
263: public function getFileName()
264: {
265: return $this->fileName;
266: }
267:
268: /**
269: * Get id
270: *
271: * @return integer
272: */
273: public function getId()
274: {
275: return $this->id;
276: }
277:
278: /**
279: * Set reportedByContact
280: *
281: * @param CoreContacts $reportedByContact
282: * @return CommercialSupportIntervention
283: */
284: public function setReportedByContact(\CoreContacts $reportedByContact = null)
285: {
286: $this->reportedByContact = $reportedByContact;
287: return $this;
288: }
289:
290: /**
291: * Get reportedByContact
292: *
293: * @return CoreContacts
294: */
295: public function getReportedByContact()
296: {
297: return $this->reportedByContact;
298: }
299:
300: /**
301: * Set soldType
302: *
303: * @param CommercialSoldType $soldType
304: * @return CommercialSupportIntervention
305: */
306: public function setSoldType(\CommercialSoldType $soldType = null)
307: {
308: $this->soldType = $soldType;
309: return $this;
310: }
311:
312: /**
313: * Get soldType
314: *
315: * @return CommercialSoldType
316: */
317: public function getSoldType()
318: {
319: return $this->soldType;
320: }
321:
322: /**
323: * Set customerUser
324: *
325: * @param CoreUsers $customerUser
326: * @return CommercialSupportIntervention
327: */
328: public function setCustomerUser(\CoreUsers $customerUser = null)
329: {
330: $this->customerUser = $customerUser;
331: return $this;
332: }
333:
334: /**
335: * Get customerUser
336: *
337: * @return CoreUsers
338: */
339: public function getCustomerUser()
340: {
341: return $this->customerUser;
342: }
343:
344: /**
345: * Set project
346: *
347: * @param CommercialProject $project
348: * @return CommercialSupportIntervention
349: */
350: public function setProject(\CommercialProject $project = null)
351: {
352: $this->project = $project;
353: return $this;
354: }
355:
356: /**
357: * Get project
358: *
359: * @return CommercialProject
360: */
361: public function getProject()
362: {
363: return $this->project;
364: }
365: }