Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function initSetConfigXml(array $parameters) |
||
22 | { |
||
23 | $parameters = Fluent($parameters); |
||
24 | $configXml = new SetConfigXMLParameters($parameters->get('meetingID')); |
||
25 | $rawXml = $parameters->xml; |
||
26 | if (!$parameters->xml instanceof \SimpleXMLElement) { |
||
27 | try { |
||
28 | $rawXml = new \SimpleXMLElement($parameters->xml); |
||
29 | } catch (\Exception $e) { |
||
30 | throw new \Exception('Could not parse payload as XMl'); |
||
31 | } |
||
32 | } |
||
33 | |||
34 | $configXml->setRawXml($rawXml); |
||
35 | |||
36 | return $configXml; |
||
37 | } |
||
38 | } |
||
39 |