Total Complexity | 19 |
Total Lines | 101 |
Duplicated Lines | 0 % |
Coverage | 95.24% |
Changes | 0 |
1 | <?php |
||
9 | class Response implements ResponseInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var array|null |
||
13 | */ |
||
14 | private $backtrace; |
||
15 | /** |
||
16 | * @var array|null |
||
17 | */ |
||
18 | private $data; |
||
19 | /** |
||
20 | * @var array|null |
||
21 | */ |
||
22 | private $note; |
||
23 | /** |
||
24 | * @var array|null |
||
25 | */ |
||
26 | private $profile; |
||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | private $type; |
||
31 | |||
32 | /** |
||
33 | * @param int|null $t |
||
34 | * @param array|null $r |
||
35 | * @param array|null $b |
||
36 | 17 | * @param array|null $p |
|
37 | * @param array|null $n |
||
38 | 17 | */ |
|
39 | 17 | public function __construct(int $t = null, array $r = null, array $b = null, array $p = null, array $n = null) |
|
40 | 17 | { |
|
41 | 17 | !$t ?: $this->type = $t; |
|
42 | 17 | !$r ?: $this->data = $r; |
|
43 | 17 | !$b ?: $this->backtrace = $b; |
|
44 | !$p ?: $this->profile = $p; |
||
45 | !$n ?: $this->note = $n; |
||
46 | } |
||
47 | |||
48 | 17 | /** |
|
49 | * @inheritdoc |
||
50 | 17 | */ |
|
51 | public function getType(): ?int |
||
52 | { |
||
53 | return $this->type; |
||
54 | } |
||
55 | |||
56 | 17 | /** |
|
57 | * @inheritdoc |
||
58 | 17 | */ |
|
59 | public function getData() |
||
78 | 1 | } |
|
79 | |||
80 | /** |
||
81 | * @return bool |
||
82 | */ |
||
83 | public function isAtomic(): bool |
||
86 | 1 | } |
|
87 | |||
88 | /** |
||
89 | * @inheritdoc |
||
90 | */ |
||
91 | public function getBacktrace(): ?array |
||
92 | 1 | { |
|
93 | return $this->backtrace; |
||
94 | 1 | } |
|
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | public function getProfile(): ?array |
||
100 | { |
||
101 | return $this->profile; |
||
102 | } |
||
103 | |||
104 | /** |
||
105 | * @inheritdoc |
||
106 | */ |
||
107 | public function getNote(): ?array |
||
110 | } |
||
111 | } |
||
112 |