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_state")
15: */
16: class State
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 state title
29: * @ORM\Column(type="string", length=128, nullable=true)
30: */
31: protected $title;
32:
33: /**
34: * @var string $title The server url
35: * @ORM\Column(type="string", length=1024, nullable=true)
36: */
37: protected $serverurl;
38:
39: /**
40: * @var string $title The appllication slug
41: * @ORM\Column(type="string", length=128, nullable=true)
42: */
43: protected $slug;
44:
45: /**
46: * @var string $json The json
47: * @ORM\Column(type="text", nullable=true)
48: */
49: protected $json;
50:
51: public function __construct()
52: {
53:
54: }
55:
56: /**
57: * Set id
58: *
59: * @param integer $id
60: * @return State
61: */
62: public function setId($id)
63: {
64: $this->id = $id;
65: return $this;
66: }
67:
68: /**
69: * Get id
70: *
71: * @return integer
72: */
73: public function getId()
74: {
75: return $this->id;
76: }
77:
78: /**
79: * Set title
80: *
81: * @param string $title
82: * @return State
83: */
84: public function setTitle($title)
85: {
86: $this->title = $title;
87: return $this;
88: }
89:
90: /**
91: * Get title
92: *
93: * @return string
94: */
95: public function getTitle()
96: {
97: return $this->title;
98: }
99:
100: /**
101: * Set serverurl
102: *
103: * @param string $serverurl
104: * @return State
105: */
106: public function setServerurl($serverurl)
107: {
108: $this->serverurl = $serverurl;
109: return $this;
110: }
111:
112: /**
113: * Get serverurl
114: *
115: * @return string serverurl
116: */
117: public function getServerurl()
118: {
119: return $this->serverurl;
120: }
121:
122: /**
123: * Set slug
124: *
125: * @param string $slug
126: * @return State
127: */
128: public function setSlug($slug)
129: {
130: $this->slug = $slug;
131: return $this;
132: }
133:
134: /**
135: * Get slug
136: *
137: * @return string
138: */
139: public function getSlug()
140: {
141: return $this->slug;
142: }
143:
144:
145:
146: /**
147: * Set json
148: *
149: * @param string $json
150: * @return State
151: */
152: public function setJson($json)
153: {
154: $this->json = $json;
155: return $this;
156: }
157:
158: /**
159: * Get json
160: *
161: * @return string
162: */
163: public function getJson()
164: {
165: return $this->json;
166: }
167:
168: }
169: