| Total Complexity | 10 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | trait XmlCommand { |
||
| 8 | |||
| 9 | public function getXmlFile($archive = true) { |
||
| 10 | |||
| 11 | $path = $this->getDocumentRoot() . static::FINAL_FOLDER . static::XML_FILE; |
||
| 12 | if(static::GZIP === true && $archive) { |
||
| 13 | $path .= '.gz'; |
||
| 14 | } |
||
| 15 | return $path; |
||
| 16 | } |
||
| 17 | |||
| 18 | protected function getTmpXmlFile($archive = true) { |
||
| 19 | |||
| 20 | $path = $this->getDocumentRoot() . static::TMP_FOLDER . static::XML_FILE; |
||
| 21 | if(static::GZIP === true && $archive) { |
||
| 22 | $path .= '.gz'; |
||
| 23 | } |
||
| 24 | return $path; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function writeXml($xml) { |
||
| 52 | } |
||
| 53 | } |
||
| 54 |