DummyResponse   A
last analyzed

Complexity

Total Complexity 14

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Importance

Changes 0
Metric Value
wmc 14
lcom 2
cbo 0
dl 0
loc 74
rs 10
c 0
b 0
f 0

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getProtocolVersion() 0 4 1
A withProtocolVersion() 0 4 1
A getHeaders() 0 4 1
A hasHeader() 0 4 1
A getHeader() 0 4 1
A getHeaderLine() 0 4 1
A withHeader() 0 4 1
A withAddedHeader() 0 4 1
A withoutHeader() 0 4 1
A getBody() 0 4 1
A withBody() 0 4 1
A getStatusCode() 0 4 1
A withStatus() 0 4 1
A getReasonPhrase() 0 3 1
1
<?php
2
3
namespace Demv\JSend\Test;
4
5
use Psr\Http\Message\ResponseInterface;
6
use Psr\Http\Message\StreamInterface;
7
8
/**
9
 * Class DummyResponse
10
 * @package Demv\JSend\Test
11
 */
12
final class DummyResponse implements ResponseInterface
13
{
14
    private $body;
15
    private $code;
16
17
    public function getProtocolVersion(): void
18
    {
19
        // TODO: Implement getProtocolVersion() method.
20
    }
21
22
    public function withProtocolVersion($version): void
23
    {
24
        // TODO: Implement withProtocolVersion() method.
25
    }
26
27
    public function getHeaders(): void
28
    {
29
        // TODO: Implement getHeaders() method.
30
    }
31
32
    public function hasHeader($name): void
33
    {
34
        // TODO: Implement hasHeader() method.
35
    }
36
37
    public function getHeader($name): void
38
    {
39
        // TODO: Implement getHeader() method.
40
    }
41
42
    public function getHeaderLine($name): void
43
    {
44
        // TODO: Implement getHeaderLine() method.
45
    }
46
47
    public function withHeader($name, $value): void
48
    {
49
        // TODO: Implement withHeader() method.
50
    }
51
52
    public function withAddedHeader($name, $value): void
53
    {
54
        // TODO: Implement withAddedHeader() method.
55
    }
56
57
    public function withoutHeader($name): void
58
    {
59
        // TODO: Implement withoutHeader() method.
60
    }
61
62
    public function getBody()
63
    {
64
        return $this->body;
65
    }
66
67
    public function withBody(StreamInterface $body): void
68
    {
69
        $this->body = $body;
70
    }
71
72
    public function getStatusCode()
73
    {
74
        return $this->code;
75
    }
76
77
    public function withStatus($code, $reasonPhrase = ''): void
78
    {
79
        $this->code = $code;
80
    }
81
82
    public function getReasonPhrase(): void
83
    {
84
    }
85
}
86