Completed
Push — attr ( 2774df...1fb603 )
by Akihito
01:12
created

ResourceState::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 5
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\QueryRepository;
6
7
use BEAR\Resource\AbstractUri;
8
9
final class ResourceState
10
{
11
    /** @var AbstractUri|string */
12
    public $uri;
13
14
    /** @var string */
15
    public $code;
16
17
    /** @var array<string, string> */
18
    public $headers;
19
20
    /** @var mixed */
21
    public $body;
22
23
    /** @var ?string */
24
    public $view;
25
26
    /**
27
     * @param AbstractUri|string   $uri
28
     * @param array<string, mixed> $headers
29
     * @param mixed                $body
30
     * @param ?string              $view
0 ignored issues
show
Documentation introduced by
The doc-type ?string could not be parsed: Unknown type name "?string" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
31
     */
32
    public function __construct($uri, string $code, array $headers, $body, ?string $view)
33
    {
34
        $this->uri = $uri;
35
        $this->code = $code;
36
        $this->headers = $headers;
37
        $this->body = $body;
38
        $this->view = $view;
39
    }
40
}
41