1: <?php
2:
3: namespace Mapbender\CoreBundle\Component;
4:
5: /*
6: * To change this template, choose Tools | Templates
7: * and open the template in the editor.
8: */
9:
10: /**
11: * Description of SourceConfigurationOptions
12: *
13: * @author Paul Schmidt
14: */
15: abstract class InstanceConfigurationOptions
16: {
17: /**
18: * ORM\Column(type="string", nullable=true)
19: */
20: //@TODO Doctrine bug: "protected" replaced with "public"
21: public $url;
22: /**
23: * ORM\Column(type="string", nullable=true)
24: */
25: //@TODO Doctrine bug: "protected" replaced with "public"
26: public $format;
27: /**
28: * ORM\Column(type="string", nullable=true)
29: */
30: //@TODO Doctrine bug: "protected" replaced with "public"
31: public $infoformat;
32: /**
33: * ORM\Column(type="float", nullable=true)
34: */
35: //@TODO Doctrine bug: "protected" replaced with "public"
36: public $opacity;
37: /**
38: * ORM\Column(type="boolean", nullable=true)
39: */
40: //@TODO Doctrine bug: "protected" replaced with "public"
41: public $proxy;
42: /**
43: * ORM\Column(type="boolean", nullable=true)
44: */
45: //@TODO Doctrine bug: "protected" replaced with "public"
46: public $visible;
47: /**
48: * ORM\Column(type="boolean", nullable=true)
49: */
50: //@TODO Doctrine bug: "protected" replaced with "public"
51: public $transparency;
52:
53: /**
54: * Sets an url
55: *
56: * @param string $url source url
57: * @return SierviceConfigurationOptions
58: */
59: public function setUrl($url){
60: $this->url = $url;
61: return $this;
62: }
63:
64: /**
65: * Returns a source url
66: *
67: * @return string url
68: */
69: public function getUrl(){
70: return $this->url;
71: }
72: /**
73: * Sets a format
74: *
75: * @param string $format source format
76: * @return SierviceConfigurationOptions
77: */
78: public function setFormat($format){
79: $this->format = $format;
80: return $this;
81: }
82:
83: /**
84: * Returns a format
85: *
86: * @return string format
87: */
88: public function getFormat(){
89: return $this->format;
90: }
91: /**
92: * Sets a infoformat
93: *
94: * @param string $infoformat source infoformat
95: * @return SierviceConfigurationOptions
96: */
97: public function setInfoformat($infoformat){
98: $this->infoformat = $infoformat;
99: return $this;
100: }
101:
102: /**
103: * Returns an infoformat
104: *
105: * @return string infoformat
106: */
107: public function getInfoformat(){
108: return $this->infoformat;
109: }
110: /**
111: * Sets an opacity
112: *
113: * @param float $opacity source opacity
114: * @return SierviceConfigurationOptions
115: */
116: public function setOpacity($opacity){
117: $this->opacity = $opacity;
118: return $this;
119: }
120:
121: /**
122: * Returns an opacity
123: *
124: * @return float opacity
125: */
126: public function getOpacity(){
127: return $this->opacity;
128: }
129: /**
130: * Sets a proxy
131: *
132: * @param boolean $proxy source proxy
133: * @return SierviceConfigurationOptions
134: */
135: public function setProxy($proxy){
136: $this->proxy = $proxy;
137: return $this;
138: }
139:
140: /**
141: * Returns a proxy
142: *
143: * @return boolean proxy
144: */
145: public function getProxy(){
146: return $this->proxy;
147: }
148: /**
149: * Sets a visible
150: *
151: * @param boolean $visible source visibility
152: * @return SierviceConfigurationOptions
153: */
154: public function setVisible($visible){
155: $this->visible = $visible;
156: return $this;
157: }
158:
159: /**
160: * Returns a visible
161: *
162: * @return boolean visible
163: */
164: public function getVisible(){
165: return $this->visible;
166: }
167: /**
168: * Sets a transparency
169: *
170: * @param boolean $transparency source transparency
171: * @return SierviceConfigurationOptions
172: */
173: public function setTransparency($transparency){
174: $this->transparency = $transparency;
175: return $this;
176: }
177:
178: /**
179: * Returns a transparency
180: *
181: * @return boolean transparency
182: */
183: public function getTransparency(){
184: return $this->transparency;
185: }
186:
187: public abstract function toArray();
188:
189: }
190:
191: ?>
192: