1: <?php
2:
3: namespace Mapbender\CoreBundle\Entity;
4:
5: use Doctrine\ORM\Mapping as ORM;
6: use Doctrine\Common\Collections\ArrayCollection;
7:
8: /**
9: * Source entity
10: *
11: * @author Paul Schmidt
12: *
13: * @ORM\Entity
14: * @ORM\Table(name="mb_core_keyword")
15: */
16: class Keyword
17: {
18:
19: /**
20: * @var integer $id
21: * @ORM\Id
22: * @ORM\Column(type="integer")
23: * @ORM\GeneratedValue(strategy="AUTO")
24: */
25: protected $id;
26:
27: /**
28: * @var string $title The source title
29: * @ORM\Column(type="string", nullable=false)
30: */
31: protected $value;
32:
33: /**
34: * @var string $title The source title
35: * @ORM\Column(type="integer", nullable=false)
36: */
37: protected $sourceid;
38:
39: /**
40: * @var string $title The source title
41: * @ORM\Column(type="string", nullable=false)
42: */
43: protected $sourceclass;
44:
45: public function __construct()
46: {
47:
48: }
49:
50: /**
51: * Get id
52: *
53: * @return integer
54: */
55: public function getId()
56: {
57: return $this->id;
58: }
59:
60: /**
61: * Set value
62: *
63: * @param string $value
64: * @return Keyword
65: */
66: public function setValue($value)
67: {
68: $this->value = $value;
69: return $this;
70: }
71:
72: /**
73: * Get value
74: *
75: * @return string
76: */
77: public function getValue()
78: {
79: return $this->value;
80: }
81:
82: /**
83: * Set sourceid
84: *
85: * @param object $sourceid
86: * @return Keyword
87: */
88: public function setSourceid($sourceid)
89: {
90: $this->sourceid = $sourceid;
91: return $this;
92: }
93:
94: /**
95: * Get sourceid
96: *
97: * @return Object
98: */
99: public function getSourceid()
100: {
101: return $this->sourceid;
102: }
103:
104: /**
105: * Set sourceclass
106: *
107: * @param string $sourceclass
108: * @return Keyword
109: */
110: public function setSourceclass($sourceclass)
111: {
112: $this->sourceclass = $sourceclass;
113: return $this;
114: }
115:
116: /**
117: * Get sourceclass
118: *
119: * @return string
120: */
121: public function getSourceclass()
122: {
123: return $this->sourceclass;
124: }
125:
126: }
127: