| Total Complexity | 2 | 
| Total Lines | 26 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 13 | final class StreamCouldNotBeOpened extends RuntimeException  | 
            ||
| 14 | { | 
            ||
| 15 | /**  | 
            ||
| 16 | * @var string Path to file.  | 
            ||
| 17 | */  | 
            ||
| 18 | private $filePath;  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * Constructor.  | 
            ||
| 22 | *  | 
            ||
| 23 | * @param string $filePath Path to file.  | 
            ||
| 24 | * @param Throwable $previous Previous exception, used for exception chaining.  | 
            ||
| 25 | */  | 
            ||
| 26 | 1 | public function __construct(string $filePath, ?Throwable $previous = null)  | 
            |
| 27 |     { | 
            ||
| 28 | 1 | $this->filePath = $filePath;  | 
            |
| 29 | |||
| 30 | 1 |         parent::__construct('File stream could not be opened: ' . $filePath, /*code*/0, $previous); | 
            |
| 31 | }  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * @return string Path to file.  | 
            ||
| 35 | */  | 
            ||
| 36 | 1 | public function getFilePath(): string  | 
            |
| 39 | }  | 
            ||
| 40 | }  | 
            ||
| 41 |