1: <?php
2:
3:
4:
5:
6:
7: /**
8: * CommercialAutoIncrement
9: *
10: * @Table(name="COMMERCIAL_AUTO_INCREMENT")
11: * @Entity
12: */
13: class CommercialAutoIncrement
14: {
15: /**
16: * @var integer $nextInvoiceId
17: *
18: * @Column(name="next_invoice_id", type="integer")
19: */
20: private $nextInvoiceId;
21:
22: /**
23: * @var integer $companyId
24: *
25: * @Column(name="company_id", type="integer")
26: * @Id
27: * @GeneratedValue(strategy="IDENTITY")
28: */
29: private $companyId;
30:
31: /**
32: * @var CoreCompanies
33: *
34: * @ManyToOne(targetEntity="CoreCompanies")
35: * @JoinColumns({
36: * @JoinColumn(name="company_id", referencedColumnName="id")
37: * })
38: */
39: private $company;
40:
41:
42: /**
43: * Set nextInvoiceId
44: *
45: * @param integer $nextInvoiceId
46: * @return CommercialAutoIncrement
47: */
48: public function setNextInvoiceId($nextInvoiceId)
49: {
50: $this->nextInvoiceId = $nextInvoiceId;
51: return $this;
52: }
53:
54: /**
55: * Get nextInvoiceId
56: *
57: * @return integer
58: */
59: public function getNextInvoiceId()
60: {
61: return $this->nextInvoiceId;
62: }
63:
64: /**
65: * Get companyId
66: *
67: * @return integer
68: */
69: public function getCompanyId()
70: {
71: return $this->companyId;
72: }
73:
74: /**
75: * Set company
76: *
77: * @param CoreCompanies $company
78: * @return CommercialAutoIncrement
79: */
80: public function setCompany(\CoreCompanies $company = null)
81: {
82: $this->company = $company;
83: return $this;
84: }
85:
86: /**
87: * Get company
88: *
89: * @return CoreCompanies
90: */
91: public function getCompany()
92: {
93: return $this->company;
94: }
95: }