| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class XToLocalFile |
||
| 11 | { |
||
| 12 | use TToLocalFile; |
||
| 13 | |||
| 14 | protected ?string $tempFile = null; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $name |
||
| 18 | * @param string|resource $content |
||
| 19 | * @throws MimeException |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function convert(string $name, $content): string |
||
| 27 | } |
||
| 28 | |||
| 29 | public function initTempFile(): void |
||
| 30 | { |
||
| 31 | // beware! it immediately creates that temporary file |
||
| 32 | $this->tempFile = tempnam(sys_get_temp_dir(), 'MimeSrcTest'); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getTempFile(): ?string |
||
| 38 | } |
||
| 39 | } |
||
| 40 |