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

JsonBinaryDecoderValue   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 52
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getValue() 0 4 1
A isIsResolved() 0 4 1
A getType() 0 4 1
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
}