Completed
Push — master ( 15c40a...010522 )
by kacper
01:57
created

JsonBinaryDecoderValue::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
4
namespace MySQLReplication\JsonBinaryDecoder;
5
6
/**
7
 * Class JsonBinaryDecoderValue
8
 * @package MySQLReplication\JsonBinaryDecoder
9
 */
10
class JsonBinaryDecoderValue
11
{
12
    /**
13
     * @var bool
14
     */
15
    private $isResolved;
16
    /**
17
     * @var mixed
18
     */
19
    private $value;
20
    /**
21
     * @var string
22
     */
23
    private $type;
24
25
    /**
26
     * JsonBinaryDecoderValue constructor.
27
     * @param bool $isResolved
28
     * @param mixed $value
29
     * @param string $type
30
     */
31
    public function __construct($isResolved, $value, $type)
32
    {
33
        $this->isResolved = $isResolved;
34
        $this->value = $value;
35
        $this->type = $type;
36
    }
37
38
    /**
39
     * @return mixed
40
     */
41
    public function getValue()
42
    {
43
        return $this->value;
44
    }
45
46
    /**
47
     * @return boolean
48
     */
49
    public function isIsResolved()
50
    {
51
        return $this->isResolved;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getType()
58
    {
59
        return $this->type;
60
    }
61
}