Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
38 | class NonClosingStream implements StreamInterface |
||
39 | { |
||
40 | use StreamDecoratorTrait; |
||
41 | |||
42 | /** |
||
43 | * Overridden to detach the underlying stream without closing it. |
||
44 | */ |
||
45 | 1 | public function close() |
|
46 | { |
||
47 | 1 | $this->stream = null; |
|
48 | 1 | } |
|
49 | |||
50 | /** |
||
51 | * Overridden to detach the underlying stream without closing it. |
||
52 | */ |
||
53 | 1 | public function detach() |
|
56 | 1 | } |
|
57 | } |
||
58 |