| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 14 | public function createBodyContent(array $identificationNumbers): string |
||
| 15 | { |
||
| 16 | $date = new \DateTime(); |
||
| 17 | $content = ' |
||
| 18 | <are:Ares_dotazy |
||
| 19 | xmlns:are="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_request_orrg/v_1.0.0" |
||
| 20 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
| 21 | xsi:schemaLocation="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_request_orrg/v_1.0.0 http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_request_orrg/v_1.0.0/ares_request_orrg.xsd" |
||
| 22 | dotaz_datum_cas="' . $date->format('Y-m-dTH:i:s') . '" |
||
| 23 | dotaz_pocet="' . count($identificationNumbers) . '" |
||
| 24 | dotaz_typ="Basic" |
||
| 25 | vystup_format="XML" |
||
| 26 | validation_XSLT="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer/v_1.0.0/ares_answer.xsl" |
||
| 27 | answerNamespaceRequired="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer_basic/v_1.0.3" |
||
| 28 | Id="Ares_dotaz"> |
||
| 29 | '; |
||
| 30 | |||
| 31 | foreach ($identificationNumbers as $key => $in) { |
||
| 32 | $content .= '<Dotaz><Pomocne_ID>' . $key . '</Pomocne_ID><ICO>' . $in . '</ICO></Dotaz>'; |
||
| 33 | } |
||
| 34 | |||
| 35 | $content .= '</are:Ares_dotazy>'; |
||
| 36 | return $content; |
||
| 37 | } |
||
| 38 | |||
| 40 |