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