Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class JsonBinaryDecoderValue |
||
7 | { |
||
8 | private $isResolved; |
||
9 | private $value; |
||
10 | private $type; |
||
11 | private $offset; |
||
12 | |||
13 | public function __construct( |
||
14 | bool $isResolved, |
||
15 | $value, |
||
16 | int $type, |
||
17 | int $offset = null |
||
18 | ) { |
||
19 | $this->isResolved = $isResolved; |
||
20 | $this->value = $value; |
||
21 | $this->type = $type; |
||
22 | $this->offset = $offset; |
||
23 | } |
||
24 | |||
25 | public function getOffset(): int |
||
26 | { |
||
27 | return $this->offset; |
||
|
|||
28 | } |
||
29 | |||
30 | public function getValue() |
||
31 | { |
||
32 | return $this->value; |
||
33 | } |
||
34 | |||
35 | public function isIsResolved(): bool |
||
36 | { |
||
37 | return $this->isResolved; |
||
38 | } |
||
39 | |||
40 | public function getType(): int |
||
43 | } |
||
44 | } |