1: <?php
2:
3:
4:
5:
6:
7: /**
8: * CommercialSoldType
9: *
10: * @Table(name="COMMERCIAL_SOLD_TYPE")
11: * @Entity
12: */
13: class CommercialSoldType
14: {
15: /**
16: * @var string $label
17: *
18: * @Column(name="label", type="string", length=70)
19: */
20: private $label;
21:
22: /**
23: * @var string $code
24: *
25: * @Column(name="code", type="string")
26: * @Id
27: * @GeneratedValue(strategy="IDENTITY")
28: */
29: private $code;
30:
31:
32: /**
33: * Set label
34: *
35: * @param string $label
36: * @return CommercialSoldType
37: */
38: public function setLabel($label)
39: {
40: $this->label = $label;
41: return $this;
42: }
43:
44: /**
45: * Get label
46: *
47: * @return string
48: */
49: public function getLabel()
50: {
51: return $this->label;
52: }
53:
54: /**
55: * Get code
56: *
57: * @return string
58: */
59: public function getCode()
60: {
61: return $this->code;
62: }
63: }