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: * Get id
58: *
59: * @return integer
60: */
61: public function getId()
62: {
63: return $this->id;
64: }
65:
66: /**
67: * Set title
68: *
69: * @param string $title
70: * @return State
71: */
72: public function setTitle($title)
73: {
74: $this->title = $title;
75: return $this;
76: }
77:
78: /**
79: * Get title
80: *
81: * @return string
82: */
83: public function getTitle()
84: {
85: return $this->title;
86: }
87:
88: /**
89: * Set serverurl
90: *
91: * @param string $serverurl
92: * @return State
93: */
94: public function setServerurl($serverurl)
95: {
96: $this->serverurl = $serverurl;
97: return $this;
98: }
99:
100: /**
101: * Get serverurl
102: *
103: * @return string serverurl
104: */
105: public function getServerurl()
106: {
107: return $this->serverurl;
108: }
109:
110: /**
111: * Set slug
112: *
113: * @param string $slug
114: * @return State
115: */
116: public function setSlug($slug)
117: {
118: $this->slug = $slug;
119: return $this;
120: }
121:
122: /**
123: * Get slug
124: *
125: * @return string
126: */
127: public function getSlug()
128: {
129: return $this->slug;
130: }
131:
132:
133:
134: /**
135: * Set json
136: *
137: * @param string $json
138: * @return State
139: */
140: public function setJson($json)
141: {
142: $this->json = $json;
143: return $this;
144: }
145:
146: /**
147: * Get json
148: *
149: * @return string
150: */
151: public function getJson()
152: {
153: return $this->json;
154: }
155:
156: }
157: