Passed
Pull Request — master (#39)
by kenny
01:46
created

Stream   A

Complexity

Total Complexity 15

Size/Duplication

Total Lines 134
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 134
rs 10
c 0
b 0
f 0
wmc 15

15 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 2 1
A isWritable() 0 2 1
A eof() 0 2 1
A detach() 0 2 1
A seek() 0 2 1
A read() 0 2 1
A getSize() 0 2 1
A isReadable() 0 2 1
A rewind() 0 2 1
A getContents() 0 2 1
A isSeekable() 0 2 1
A close() 0 2 1
A tell() 0 2 1
A getMetadata() 0 2 1
A write() 0 2 1
1
<?php
2
3
namespace One\Psr7;
4
5
/**
6
 * StreamInterface Implementation class
7
 */
8
class Stream implements \Psr\Http\Message\StreamInterface
9
{
10
    /**
11
     * Readble prop
12
     * @var boolean
13
     */
14
    private $readable;
0 ignored issues
show
introduced by
The private property $readable is not used, and could be removed.
Loading history...
15
16
    /**
17
     * Writeable prop
18
     * @var boolean
19
     */
20
    private $writeable;
0 ignored issues
show
introduced by
The private property $writeable is not used, and could be removed.
Loading history...
21
22
    /**
23
     * Seekable prop
24
     * @var boolean
25
     */
26
    private $seekable;
0 ignored issues
show
introduced by
The private property $seekable is not used, and could be removed.
Loading history...
27
28
    /**
29
     * Content of stream
30
     * @var mixed
31
     */
32
    private $contents;
0 ignored issues
show
introduced by
The private property $contents is not used, and could be removed.
Loading history...
33
34
    /**
35
     * Size of stream
36
     * @var int
37
     */
38
    private $size;
0 ignored issues
show
introduced by
The private property $size is not used, and could be removed.
Loading history...
39
40
    /**
41
     * @inheritDoc
42
     */
43
    public function __toString()
44
    {
45
    }
46
47
    /**
48
     * @inheritDoc
49
     */
50
    public function close()
51
    {
52
    }
53
54
    /**
55
     * @inheritDoc
56
     */
57
    public function detach()
58
    {
59
    }
60
    /**
61
     * @inheritDoc
62
     */
63
    public function getSize()
64
    {
65
    }
66
67
    /**
68
     * @inheritDoc
69
     */
70
    public function tell()
71
    {
72
    }
73
74
    /**
75
     * @inheritDoc
76
     */
77
    public function eof()
78
    {
79
    }
80
81
    /**
82
     * @inheritDoc
83
     */
84
    public function isSeekable()
85
    {
86
    }
87
88
    /**
89
     * @inheritDoc
90
     */
91
    public function seek($offset, $whence = SEEK_SET)
92
    {
93
    }
94
95
    /**
96
     * @inheritDoc
97
     */
98
    public function rewind()
99
    {
100
    }
101
102
    /**
103
     * @inheritDoc
104
     */
105
    public function isWritable()
106
    {
107
    }
108
109
    /**
110
     * @inheritDoc
111
     */
112
    public function write($string)
113
    {
114
    }
115
116
    /**
117
     * @inheritDoc
118
     */
119
    public function isReadable()
120
    {
121
    }
122
123
    /**
124
     * @inheritDoc
125
     */
126
    public function read($length)
127
    {
128
    }
129
130
    /**
131
     * @inheritDoc
132
     */
133
    public function getContents()
134
    {
135
    }
136
137
    /**
138
     * @inheritDoc
139
     */
140
    public function getMetadata($key = null)
141
    {
142
    }
143
}
144