| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 68.75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 22 | final class FileStream extends Stream |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @throws InvalidArgumentException |
||
| 26 | */ |
||
| 27 | 5 | public function __construct(string $filename, string $mode) |
|
| 30 | } |
||
| 31 | |||
| 32 | public function getFilename(): string |
||
| 33 | { |
||
| 34 | /** @var string $filename */ |
||
| 35 | $filename = $this->getMetadata('uri'); |
||
| 36 | |||
| 37 | return $filename; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return resource |
||
| 42 | * |
||
| 43 | * @throws InvalidArgumentException |
||
| 44 | */ |
||
| 45 | 5 | private static function openFile(string $filename, string $mode) |
|
| 62 | } |
||
| 63 | } |
||
| 64 |