Response   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 19
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace HttpSoft\Message;
6
7
use Psr\Http\Message\ResponseInterface;
8
use Psr\Http\Message\StreamInterface;
9
10
final class Response implements ResponseInterface
11
{
12
    use ResponseTrait;
13
14
    /**
15
     * @param int $statusCode
16
     * @param array $headers
17
     * @param StreamInterface|string|resource|null $body
18
     * @param string $protocol
19
     * @param string $reasonPhrase
20
     */
21 74
    public function __construct(
22
        int $statusCode = 200,
23
        array $headers = [],
24
        $body = null,
25
        string $protocol = '1.1',
26
        string $reasonPhrase = ''
27
    ) {
28 74
        $this->init($statusCode, $reasonPhrase, $headers, $body, $protocol);
29
    }
30
}
31