1: <?php
2:
3:
4:
5:
6:
7: /**
8: * CommercialAccounting
9: *
10: * @Table(name="COMMERCIAL_ACCOUNTING")
11: * @Entity
12: */
13: class CommercialAccounting
14: {
15: /**
16: * @var string $label
17: *
18: * @Column(name="label", type="string", length=20)
19: */
20: private $label;
21:
22: /**
23: * @var string $accountNo
24: *
25: * @Column(name="account_no", type="string", length=12)
26: */
27: private $accountNo;
28:
29: /**
30: * @var integer $id
31: *
32: * @Column(name="id", type="integer")
33: * @Id
34: * @GeneratedValue(strategy="IDENTITY")
35: */
36: private $id;
37:
38: /**
39: * @var CoreCompanies
40: *
41: * @ManyToOne(targetEntity="CoreCompanies")
42: * @JoinColumns({
43: * @JoinColumn(name="company_id", referencedColumnName="id")
44: * })
45: */
46: private $company;
47:
48:
49: /**
50: * Set label
51: *
52: * @param string $label
53: * @return CommercialAccounting
54: */
55: public function setLabel($label)
56: {
57: $this->label = $label;
58: return $this;
59: }
60:
61: /**
62: * Get label
63: *
64: * @return string
65: */
66: public function getLabel()
67: {
68: return $this->label;
69: }
70:
71: /**
72: * Set accountNo
73: *
74: * @param string $accountNo
75: * @return CommercialAccounting
76: */
77: public function setAccountNo($accountNo)
78: {
79: $this->accountNo = $accountNo;
80: return $this;
81: }
82:
83: /**
84: * Get accountNo
85: *
86: * @return string
87: */
88: public function getAccountNo()
89: {
90: return $this->accountNo;
91: }
92:
93: /**
94: * Get id
95: *
96: * @return integer
97: */
98: public function getId()
99: {
100: return $this->id;
101: }
102:
103: /**
104: * Set company
105: *
106: * @param CoreCompanies $company
107: * @return CommercialAccounting
108: */
109: public function setCompany(\CoreCompanies $company = null)
110: {
111: $this->company = $company;
112: return $this;
113: }
114:
115: /**
116: * Get company
117: *
118: * @return CoreCompanies
119: */
120: public function getCompany()
121: {
122: return $this->company;
123: }
124: }