1: <?php
2:
3:
4:
5:
6:
7: /**
8: * CommercialBankAssocOperations
9: *
10: * @Table(name="COMMERCIAL_BANK_ASSOC_OPERATIONS")
11: * @Entity
12: */
13: class CommercialBankAssocOperations
14: {
15: /**
16: * @var decimal $amount
17: *
18: * @Column(name="amount", type="decimal")
19: */
20: private $amount;
21:
22: /**
23: * @var integer $id
24: *
25: * @Column(name="id", type="integer")
26: * @Id
27: * @GeneratedValue(strategy="IDENTITY")
28: */
29: private $id;
30:
31: /**
32: * @var CommercialBankOperation
33: *
34: * @ManyToOne(targetEntity="CommercialBankOperation")
35: * @JoinColumns({
36: * @JoinColumn(name="operation_id", referencedColumnName="id")
37: * })
38: */
39: private $operation;
40:
41: /**
42: * @var CoreUsers
43: *
44: * @ManyToOne(targetEntity="CoreUsers")
45: * @JoinColumns({
46: * @JoinColumn(name="concerned_user_id", referencedColumnName="id")
47: * })
48: */
49: private $concernedUser;
50:
51: /**
52: * @var CommercialInvoice
53: *
54: * @ManyToOne(targetEntity="CommercialInvoice")
55: * @JoinColumns({
56: * @JoinColumn(name="invoice_id", referencedColumnName="id")
57: * })
58: */
59: private $invoice;
60:
61:
62: /**
63: * Set amount
64: *
65: * @param decimal $amount
66: * @return CommercialBankAssocOperations
67: */
68: public function setAmount($amount)
69: {
70: $this->amount = $amount;
71: return $this;
72: }
73:
74: /**
75: * Get amount
76: *
77: * @return decimal
78: */
79: public function getAmount()
80: {
81: return $this->amount;
82: }
83:
84: /**
85: * Get id
86: *
87: * @return integer
88: */
89: public function getId()
90: {
91: return $this->id;
92: }
93:
94: /**
95: * Set operation
96: *
97: * @param CommercialBankOperation $operation
98: * @return CommercialBankAssocOperations
99: */
100: public function setOperation(\CommercialBankOperation $operation = null)
101: {
102: $this->operation = $operation;
103: return $this;
104: }
105:
106: /**
107: * Get operation
108: *
109: * @return CommercialBankOperation
110: */
111: public function getOperation()
112: {
113: return $this->operation;
114: }
115:
116: /**
117: * Set concernedUser
118: *
119: * @param CoreUsers $concernedUser
120: * @return CommercialBankAssocOperations
121: */
122: public function setConcernedUser(\CoreUsers $concernedUser = null)
123: {
124: $this->concernedUser = $concernedUser;
125: return $this;
126: }
127:
128: /**
129: * Get concernedUser
130: *
131: * @return CoreUsers
132: */
133: public function getConcernedUser()
134: {
135: return $this->concernedUser;
136: }
137:
138: /**
139: * Set invoice
140: *
141: * @param CommercialInvoice $invoice
142: * @return CommercialBankAssocOperations
143: */
144: public function setInvoice(\CommercialInvoice $invoice = null)
145: {
146: $this->invoice = $invoice;
147: return $this;
148: }
149:
150: /**
151: * Get invoice
152: *
153: * @return CommercialInvoice
154: */
155: public function getInvoice()
156: {
157: return $this->invoice;
158: }
159: }