1 | <?php |
||
35 | class WSDLBuilder |
||
36 | { |
||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $name; |
||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $targetNamespace; |
||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | private $ns; |
||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | private $location; |
||
53 | /** |
||
54 | * @var string |
||
55 | */ |
||
56 | private $style = SoapBinding::RPC; |
||
57 | /** |
||
58 | * @var string |
||
59 | */ |
||
60 | private $use = SoapBinding::LITERAL; |
||
61 | /** |
||
62 | * @var string |
||
63 | */ |
||
64 | private $parameterStyle = SoapBinding::BARE; |
||
65 | /** |
||
66 | * @var string |
||
67 | */ |
||
68 | private $soapVersion = BindingType::SOAP_11; |
||
69 | /** |
||
70 | * @var Method[] |
||
71 | */ |
||
72 | private $methods; |
||
73 | |||
74 | /** |
||
75 | * @return WSDLBuilder |
||
76 | */ |
||
77 | 10 | public static function instance() |
|
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | 1 | public function getName() |
|
89 | |||
90 | /** |
||
91 | * @param string $name |
||
92 | * @return $this |
||
93 | * @throws InvalidArgumentException |
||
94 | */ |
||
95 | 4 | public function setName($name) |
|
101 | |||
102 | /** |
||
103 | * @return string |
||
104 | */ |
||
105 | 1 | public function getTargetNamespace() |
|
109 | |||
110 | /** |
||
111 | * @param string $targetNamespace |
||
112 | * @return $this |
||
113 | * @throws InvalidArgumentException |
||
114 | */ |
||
115 | 4 | public function setTargetNamespace($targetNamespace) |
|
121 | |||
122 | /** |
||
123 | * @return string |
||
124 | */ |
||
125 | 1 | public function getNs() |
|
129 | |||
130 | /** |
||
131 | * @param string $ns |
||
132 | * @return $this |
||
133 | * @throws InvalidArgumentException |
||
134 | */ |
||
135 | 4 | public function setNs($ns) |
|
141 | |||
142 | /** |
||
143 | * @return string |
||
144 | */ |
||
145 | 1 | public function getLocation() |
|
149 | |||
150 | /** |
||
151 | * @param string $location |
||
152 | * @return $this |
||
153 | * @throws InvalidArgumentException |
||
154 | */ |
||
155 | 4 | public function setLocation($location) |
|
161 | |||
162 | /** |
||
163 | * @return string |
||
164 | */ |
||
165 | 1 | public function getStyle() |
|
169 | |||
170 | /** |
||
171 | * @param string $style |
||
172 | * @return $this |
||
173 | * @throws InvalidArgumentException |
||
174 | */ |
||
175 | 4 | public function setStyle($style) |
|
181 | |||
182 | /** |
||
183 | * @return string |
||
184 | */ |
||
185 | 1 | public function getUse() |
|
189 | |||
190 | /** |
||
191 | * @param string $use |
||
192 | * @return $this |
||
193 | */ |
||
194 | 4 | public function setUse($use) |
|
200 | |||
201 | /** |
||
202 | * @return string |
||
203 | */ |
||
204 | 1 | public function getParameterStyle() |
|
208 | |||
209 | /** |
||
210 | * @param string $parameterStyle |
||
211 | * @return $this |
||
212 | */ |
||
213 | 3 | public function setParameterStyle($parameterStyle) |
|
218 | |||
219 | /** |
||
220 | * @return string |
||
221 | */ |
||
222 | 1 | public function getSoapVersion() |
|
226 | |||
227 | /** |
||
228 | * @param string $soapVersion |
||
229 | * @return $this |
||
230 | * @throws InvalidArgumentException |
||
231 | */ |
||
232 | 4 | public function setSoapVersion($soapVersion) |
|
238 | |||
239 | /** |
||
240 | * @return Method[] |
||
241 | */ |
||
242 | public function getMethods() |
||
246 | |||
247 | /** |
||
248 | * @param Method $method |
||
249 | * @return $this |
||
250 | */ |
||
251 | public function setMethod(Method $method) |
||
256 | } |
||
257 |