1: <?php
2:
3: namespace Mapbender\WmsBundle\Component;
4:
5: use Mapbender\CoreBundle\Component\InstanceConfiguration;
6:
7: /*
8: * To change this template, choose Tools | Templates
9: * and open the template in the editor.
10: */
11:
12: /**
13: * Description of WmsInstanceConfiguration
14: *
15: * @author Paul Schmidt
16: */
17: class WmsInstanceConfiguration extends InstanceConfiguration
18: {
19:
20: /**
21: * Sets options
22: *
23: * @param ServiceConfigurationOptions $options ServiceConfigurationOptions
24: * @return InstanceConfiguration
25: */
26: public function setOptions($options)
27: {
28: $this->options = $options;
29: return $this;
30: }
31:
32: /**
33: * Returns options
34: *
35: * @return ServiceConfigurationOptions
36: */
37: public function getOptions()
38: {
39: return $this->options;
40: }
41:
42: /**
43: * Sets a children
44: *
45: * @param array $children children
46: * @return InstanceConfiguration
47: */
48: public function setChildren($children)
49: {
50: $this->children = $children;
51: return $this;
52: }
53:
54: /**
55: * Returns a title
56: *
57: * @return integer children
58: */
59: public function getChildren()
60: {
61: return $this->children;
62: }
63:
64: /**
65: *
66: * @return array
67: */
68: public function toArray()
69: {
70: return array(
71: "type" => $this->type,
72: "title" => $this->title,
73: "isBaseSource" => $this->isBaseSource,
74: "options" => $this->options->toArray(),
75: "children" => $this->children
76: );
77: }
78: }
79:
80: ?>
81: