1: <?php
2:
3:
4:
5:
6:
7: /**
8: * CommercialFreeDocument
9: *
10: * @Table(name="COMMERCIAL_FREE_DOCUMENT")
11: * @Entity
12: */
13: class CommercialFreeDocument
14: {
15: /**
16: * @var string $title
17: *
18: * @Column(name="title", type="string", length=45)
19: */
20: private $title;
21:
22: /**
23: * @var text $description
24: *
25: * @Column(name="description", type="text")
26: */
27: private $description;
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 CommercialProject
40: *
41: * @ManyToOne(targetEntity="CommercialProject")
42: * @JoinColumns({
43: * @JoinColumn(name="project_id", referencedColumnName="id")
44: * })
45: */
46: private $project;
47:
48:
49: /**
50: * Set title
51: *
52: * @param string $title
53: * @return CommercialFreeDocument
54: */
55: public function setTitle($title)
56: {
57: $this->title = $title;
58: return $this;
59: }
60:
61: /**
62: * Get title
63: *
64: * @return string
65: */
66: public function getTitle()
67: {
68: return $this->title;
69: }
70:
71: /**
72: * Set description
73: *
74: * @param text $description
75: * @return CommercialFreeDocument
76: */
77: public function setDescription($description)
78: {
79: $this->description = $description;
80: return $this;
81: }
82:
83: /**
84: * Get description
85: *
86: * @return text
87: */
88: public function getDescription()
89: {
90: return $this->description;
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 project
105: *
106: * @param CommercialProject $project
107: * @return CommercialFreeDocument
108: */
109: public function setProject(\CommercialProject $project = null)
110: {
111: $this->project = $project;
112: return $this;
113: }
114:
115: /**
116: * Get project
117: *
118: * @return CommercialProject
119: */
120: public function getProject()
121: {
122: return $this->project;
123: }
124: }