Passed
Push — master ( 7b4f81...84e0ca )
by Igor
03:22
created

StreamRead::isWrite()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace ClickHouseDB\Transport;
4
5
/**
6
 * Class StreamRead
7
 * @package ClickHouseDB\Transport
8
 */
9
class StreamRead extends Stream
10
{
11 1
    public function isWrite()
12
    {
13 1
        return false;
14
    }
15
    public function applyGzip()
16
    {
17
//        stream_filter_append($this->source, 'zlib.deflate', STREAM_FILTER_READ, ['window' => 30]);
18
        $this->enableGzipHeader();
19
    }
20
}
21