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 $soapVersion = BindingType::SOAP_11; |
||
65 | /** |
||
66 | * @var Method[] |
||
67 | */ |
||
68 | private $methods; |
||
69 | |||
70 | /** |
||
71 | * @return WSDLBuilder |
||
72 | */ |
||
73 | public static function instance() |
||
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | public function getName() |
||
85 | |||
86 | /** |
||
87 | * @param string $name |
||
88 | * @return $this |
||
89 | * @throws InvalidArgumentException |
||
90 | */ |
||
91 | public function setName($name) |
||
97 | |||
98 | /** |
||
99 | * @return string |
||
100 | */ |
||
101 | public function getTargetNamespace() |
||
105 | |||
106 | /** |
||
107 | * @param string $targetNamespace |
||
108 | * @return $this |
||
109 | * @throws InvalidArgumentException |
||
110 | */ |
||
111 | public function setTargetNamespace($targetNamespace) |
||
117 | |||
118 | /** |
||
119 | * @return string |
||
120 | */ |
||
121 | public function getNs() |
||
125 | |||
126 | /** |
||
127 | * @param string $ns |
||
128 | * @return $this |
||
129 | * @throws InvalidArgumentException |
||
130 | */ |
||
131 | public function setNs($ns) |
||
137 | |||
138 | /** |
||
139 | * @return string |
||
140 | */ |
||
141 | public function getLocation() |
||
145 | |||
146 | /** |
||
147 | * @param string $location |
||
148 | * @return $this |
||
149 | * @throws InvalidArgumentException |
||
150 | */ |
||
151 | public function setLocation($location) |
||
157 | |||
158 | /** |
||
159 | * @return string |
||
160 | */ |
||
161 | public function getStyle() |
||
165 | |||
166 | /** |
||
167 | * @param string $style |
||
168 | * @return $this |
||
169 | * @throws InvalidArgumentException |
||
170 | */ |
||
171 | public function setStyle($style) |
||
177 | |||
178 | /** |
||
179 | * @return string |
||
180 | */ |
||
181 | public function getUse() |
||
185 | |||
186 | /** |
||
187 | * @param string $use |
||
188 | * @return $this |
||
189 | */ |
||
190 | public function setUse($use) |
||
196 | |||
197 | /** |
||
198 | * @return string |
||
199 | */ |
||
200 | public function getSoapVersion() |
||
204 | |||
205 | /** |
||
206 | * @param string $soapVersion |
||
207 | * @return $this |
||
208 | * @throws InvalidArgumentException |
||
209 | */ |
||
210 | public function setSoapVersion($soapVersion) |
||
216 | |||
217 | /** |
||
218 | * @return Method[] |
||
219 | */ |
||
220 | public function getMethods() |
||
224 | |||
225 | /** |
||
226 | * @param Method $method |
||
227 | * @return $this |
||
228 | */ |
||
229 | public function setMethod(Method $method) |
||
234 | } |
||
235 |