Request   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\RequestInterface;
8
use Psr\Http\Message\StreamInterface;
9
use Psr\Http\Message\UriInterface;
10
11
final class Request implements RequestInterface
12
{
13
    use RequestTrait;
14
15
    /**
16
     * @param string $method
17
     * @param UriInterface|string $uri
18
     * @param array $headers
19
     * @param StreamInterface|string|resource|null $body
20
     * @param string $protocol
21
     */
22 133
    public function __construct(
23
        string $method = 'GET',
24
        $uri = '',
25
        array $headers = [],
26
        $body = null,
27
        string $protocol = '1.1'
28
    ) {
29 133
        $this->init($method, $uri, $headers, $body, $protocol);
30
    }
31
}
32