1: <?php
2:
3:
4:
5:
6:
7: /**
8: * CommercialProviderInvoice
9: *
10: * @Table(name="COMMERCIAL_PROVIDER_INVOICE")
11: * @Entity
12: */
13: class CommercialProviderInvoice
14: {
15: /**
16: * @var date $invoiceDate
17: *
18: * @Column(name="invoice_date", type="date")
19: */
20: private $invoiceDate;
21:
22: /**
23: * @var string $invoiceNum
24: *
25: * @Column(name="invoice_num", type="string", length=50)
26: */
27: private $invoiceNum;
28:
29: /**
30: * @var string $invoicePaymentType
31: *
32: * @Column(name="invoice_payment_type", type="string", length=10)
33: */
34: private $invoicePaymentType;
35:
36: /**
37: * @var boolean $exported
38: *
39: * @Column(name="exported", type="boolean")
40: */
41: private $exported;
42:
43: /**
44: * @var string $invoicePath
45: *
46: * @Column(name="invoice_path", type="string", length=100)
47: */
48: private $invoicePath;
49:
50: /**
51: * @var integer $id
52: *
53: * @Column(name="id", type="integer")
54: * @Id
55: * @GeneratedValue(strategy="IDENTITY")
56: */
57: private $id;
58:
59: /**
60: * @var CoreUsers
61: *
62: * @ManyToOne(targetEntity="CoreUsers")
63: * @JoinColumns({
64: * @JoinColumn(name="provider_user_id", referencedColumnName="id")
65: * })
66: */
67: private $providerUser;
68:
69: /**
70: * @var CoreCompanies
71: *
72: * @ManyToOne(targetEntity="CoreCompanies")
73: * @JoinColumns({
74: * @JoinColumn(name="company_id", referencedColumnName="id")
75: * })
76: */
77: private $company;
78:
79: /**
80: * @var CommercialProject
81: *
82: * @ManyToOne(targetEntity="CommercialProject")
83: * @JoinColumns({
84: * @JoinColumn(name="project_id", referencedColumnName="id")
85: * })
86: */
87: private $project;
88:
89:
90: /**
91: * Set invoiceDate
92: *
93: * @param date $invoiceDate
94: * @return CommercialProviderInvoice
95: */
96: public function setInvoiceDate($invoiceDate)
97: {
98: $this->invoiceDate = $invoiceDate;
99: return $this;
100: }
101:
102: /**
103: * Get invoiceDate
104: *
105: * @return date
106: */
107: public function getInvoiceDate()
108: {
109: return $this->invoiceDate;
110: }
111:
112: /**
113: * Set invoiceNum
114: *
115: * @param string $invoiceNum
116: * @return CommercialProviderInvoice
117: */
118: public function setInvoiceNum($invoiceNum)
119: {
120: $this->invoiceNum = $invoiceNum;
121: return $this;
122: }
123:
124: /**
125: * Get invoiceNum
126: *
127: * @return string
128: */
129: public function getInvoiceNum()
130: {
131: return $this->invoiceNum;
132: }
133:
134: /**
135: * Set invoicePaymentType
136: *
137: * @param string $invoicePaymentType
138: * @return CommercialProviderInvoice
139: */
140: public function setInvoicePaymentType($invoicePaymentType)
141: {
142: $this->invoicePaymentType = $invoicePaymentType;
143: return $this;
144: }
145:
146: /**
147: * Get invoicePaymentType
148: *
149: * @return string
150: */
151: public function getInvoicePaymentType()
152: {
153: return $this->invoicePaymentType;
154: }
155:
156: /**
157: * Set exported
158: *
159: * @param boolean $exported
160: * @return CommercialProviderInvoice
161: */
162: public function setExported($exported)
163: {
164: $this->exported = $exported;
165: return $this;
166: }
167:
168: /**
169: * Get exported
170: *
171: * @return boolean
172: */
173: public function getExported()
174: {
175: return $this->exported;
176: }
177:
178: /**
179: * Set invoicePath
180: *
181: * @param string $invoicePath
182: * @return CommercialProviderInvoice
183: */
184: public function setInvoicePath($invoicePath)
185: {
186: $this->invoicePath = $invoicePath;
187: return $this;
188: }
189:
190: /**
191: * Get invoicePath
192: *
193: * @return string
194: */
195: public function getInvoicePath()
196: {
197: return $this->invoicePath;
198: }
199:
200: /**
201: * Get id
202: *
203: * @return integer
204: */
205: public function getId()
206: {
207: return $this->id;
208: }
209:
210: /**
211: * Set providerUser
212: *
213: * @param CoreUsers $providerUser
214: * @return CommercialProviderInvoice
215: */
216: public function setProviderUser(\CoreUsers $providerUser = null)
217: {
218: $this->providerUser = $providerUser;
219: return $this;
220: }
221:
222: /**
223: * Get providerUser
224: *
225: * @return CoreUsers
226: */
227: public function getProviderUser()
228: {
229: return $this->providerUser;
230: }
231:
232: /**
233: * Set company
234: *
235: * @param CoreCompanies $company
236: * @return CommercialProviderInvoice
237: */
238: public function setCompany(\CoreCompanies $company = null)
239: {
240: $this->company = $company;
241: return $this;
242: }
243:
244: /**
245: * Get company
246: *
247: * @return CoreCompanies
248: */
249: public function getCompany()
250: {
251: return $this->company;
252: }
253:
254: /**
255: * Set project
256: *
257: * @param CommercialProject $project
258: * @return CommercialProviderInvoice
259: */
260: public function setProject(\CommercialProject $project = null)
261: {
262: $this->project = $project;
263: return $this;
264: }
265:
266: /**
267: * Get project
268: *
269: * @return CommercialProject
270: */
271: public function getProject()
272: {
273: return $this->project;
274: }
275: }