1: <?php
2:
3:
4:
5:
6:
7: /**
8: * CommercialCompanyConfig
9: *
10: * @Table(name="COMMERCIAL_COMPANY_CONFIG")
11: * @Entity
12: */
13: class CommercialCompanyConfig
14: {
15: /**
16: * @var string $taxRate
17: *
18: * @Column(name="tax_rate", type="string", length=45)
19: */
20: private $taxRate;
21:
22: /**
23: * @var integer $estimateExpirationDays
24: *
25: * @Column(name="estimate_expiration_days", type="integer")
26: */
27: private $estimateExpirationDays;
28:
29: /**
30: * @var integer $invoicePaymentLimit
31: *
32: * @Column(name="invoice_payment_limit", type="integer")
33: */
34: private $invoicePaymentLimit;
35:
36: /**
37: * @var integer $companyId
38: *
39: * @Column(name="company_id", type="integer")
40: * @Id
41: * @GeneratedValue(strategy="IDENTITY")
42: */
43: private $companyId;
44:
45: /**
46: * @var CoreCompanies
47: *
48: * @ManyToOne(targetEntity="CoreCompanies")
49: * @JoinColumns({
50: * @JoinColumn(name="company_id", referencedColumnName="id")
51: * })
52: */
53: private $company;
54:
55:
56: /**
57: * Set taxRate
58: *
59: * @param string $taxRate
60: * @return CommercialCompanyConfig
61: */
62: public function setTaxRate($taxRate)
63: {
64: $this->taxRate = $taxRate;
65: return $this;
66: }
67:
68: /**
69: * Get taxRate
70: *
71: * @return string
72: */
73: public function getTaxRate()
74: {
75: return $this->taxRate;
76: }
77:
78: /**
79: * Set estimateExpirationDays
80: *
81: * @param integer $estimateExpirationDays
82: * @return CommercialCompanyConfig
83: */
84: public function setEstimateExpirationDays($estimateExpirationDays)
85: {
86: $this->estimateExpirationDays = $estimateExpirationDays;
87: return $this;
88: }
89:
90: /**
91: * Get estimateExpirationDays
92: *
93: * @return integer
94: */
95: public function getEstimateExpirationDays()
96: {
97: return $this->estimateExpirationDays;
98: }
99:
100: /**
101: * Set invoicePaymentLimit
102: *
103: * @param integer $invoicePaymentLimit
104: * @return CommercialCompanyConfig
105: */
106: public function setInvoicePaymentLimit($invoicePaymentLimit)
107: {
108: $this->invoicePaymentLimit = $invoicePaymentLimit;
109: return $this;
110: }
111:
112: /**
113: * Get invoicePaymentLimit
114: *
115: * @return integer
116: */
117: public function getInvoicePaymentLimit()
118: {
119: return $this->invoicePaymentLimit;
120: }
121:
122: /**
123: * Get companyId
124: *
125: * @return integer
126: */
127: public function getCompanyId()
128: {
129: return $this->companyId;
130: }
131:
132: /**
133: * Set company
134: *
135: * @param CoreCompanies $company
136: * @return CommercialCompanyConfig
137: */
138: public function setCompany(\CoreCompanies $company = null)
139: {
140: $this->company = $company;
141: return $this;
142: }
143:
144: /**
145: * Get company
146: *
147: * @return CoreCompanies
148: */
149: public function getCompany()
150: {
151: return $this->company;
152: }
153: }