Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
27 | 8 | public function __construct() |
|
28 | { |
||
29 | 8 | $this->filePath = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid(null, 1) . '.xml'; |
|
30 | 8 | if (!$this->filePointer = fopen($this->filePath, 'wb+')) { |
|
31 | throw new \RuntimeException("Failed to create temporary file {$this->filePath}!"); |
||
32 | } |
||
33 | 8 | } |
|
34 | |||
69 |