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