1: <?php
2:
3:
4:
5:
6:
7: /**
8: * CommercialEstimate
9: *
10: * @Table(name="COMMERCIAL_ESTIMATE")
11: * @Entity
12: */
13: class CommercialEstimate
14: {
15: /**
16: * @var string $estimationNumber
17: *
18: * @Column(name="estimation_number", type="string", length=10)
19: */
20: private $estimationNumber;
21:
22: /**
23: * @var date $dateEstimate
24: *
25: * @Column(name="date_estimate", type="date")
26: */
27: private $dateEstimate;
28:
29: /**
30: * @var integer $userId
31: *
32: * @Column(name="user_id", type="integer")
33: */
34: private $userId;
35:
36: /**
37: * @var date $validUntil
38: *
39: * @Column(name="valid_until", type="date")
40: */
41: private $validUntil;
42:
43: /**
44: * @var string $pathPdfFile
45: *
46: * @Column(name="path_pdf_file", type="string", length=256)
47: */
48: private $pathPdfFile;
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 CommercialCommercialDocument
61: *
62: * @ManyToOne(targetEntity="CommercialCommercialDocument")
63: * @JoinColumns({
64: * @JoinColumn(name="commercial_document_id", referencedColumnName="id")
65: * })
66: */
67: private $commercialDocument;
68:
69:
70: /**
71: * Set estimationNumber
72: *
73: * @param string $estimationNumber
74: * @return CommercialEstimate
75: */
76: public function setEstimationNumber($estimationNumber)
77: {
78: $this->estimationNumber = $estimationNumber;
79: return $this;
80: }
81:
82: /**
83: * Get estimationNumber
84: *
85: * @return string
86: */
87: public function getEstimationNumber()
88: {
89: return $this->estimationNumber;
90: }
91:
92: /**
93: * Set dateEstimate
94: *
95: * @param date $dateEstimate
96: * @return CommercialEstimate
97: */
98: public function setDateEstimate($dateEstimate)
99: {
100: $this->dateEstimate = $dateEstimate;
101: return $this;
102: }
103:
104: /**
105: * Get dateEstimate
106: *
107: * @return date
108: */
109: public function getDateEstimate()
110: {
111: return $this->dateEstimate;
112: }
113:
114: /**
115: * Set userId
116: *
117: * @param integer $userId
118: * @return CommercialEstimate
119: */
120: public function setUserId($userId)
121: {
122: $this->userId = $userId;
123: return $this;
124: }
125:
126: /**
127: * Get userId
128: *
129: * @return integer
130: */
131: public function getUserId()
132: {
133: return $this->userId;
134: }
135:
136: /**
137: * Set validUntil
138: *
139: * @param date $validUntil
140: * @return CommercialEstimate
141: */
142: public function setValidUntil($validUntil)
143: {
144: $this->validUntil = $validUntil;
145: return $this;
146: }
147:
148: /**
149: * Get validUntil
150: *
151: * @return date
152: */
153: public function getValidUntil()
154: {
155: return $this->validUntil;
156: }
157:
158: /**
159: * Set pathPdfFile
160: *
161: * @param string $pathPdfFile
162: * @return CommercialEstimate
163: */
164: public function setPathPdfFile($pathPdfFile)
165: {
166: $this->pathPdfFile = $pathPdfFile;
167: return $this;
168: }
169:
170: /**
171: * Get pathPdfFile
172: *
173: * @return string
174: */
175: public function getPathPdfFile()
176: {
177: return $this->pathPdfFile;
178: }
179:
180: /**
181: * Get id
182: *
183: * @return integer
184: */
185: public function getId()
186: {
187: return $this->id;
188: }
189:
190: /**
191: * Set commercialDocument
192: *
193: * @param CommercialCommercialDocument $commercialDocument
194: * @return CommercialEstimate
195: */
196: public function setCommercialDocument(\CommercialCommercialDocument $commercialDocument = null)
197: {
198: $this->commercialDocument = $commercialDocument;
199: return $this;
200: }
201:
202: /**
203: * Get commercialDocument
204: *
205: * @return CommercialCommercialDocument
206: */
207: public function getCommercialDocument()
208: {
209: return $this->commercialDocument;
210: }
211: }