Passed
Push — master ( 41866b...658441 )
by kacper
05:20
created

BinLogCurrent::getBinFileName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace MySQLReplication\BinLog;
5
6
use JsonSerializable;
7
8
class BinLogCurrent implements JsonSerializable
9
{
10
    /**
11
     * @var int
12
     */
13
    private $binLogPosition;
14
    /**
15
     * @var string
16
     */
17
    private $binFileName;
18
    /**
19
     * @var string
20
     */
21
    private $gtid;
22
    /**
23
     * @var string
24
     */
25
    private $mariaDbGtid;
26
27
    public function getBinLogPosition(): int
28
    {
29
        return $this->binLogPosition;
30
    }
31
32 57
    public function setBinLogPosition(int $binLogPosition): void
33
    {
34 57
        $this->binLogPosition = $binLogPosition;
35 57
    }
36
37 1
    public function getBinFileName(): string
38
    {
39 1
        return $this->binFileName;
40
    }
41
42 57
    public function setBinFileName(string $binFileName): void
43
    {
44 57
        $this->binFileName = $binFileName;
45 57
    }
46
47
    public function getGtid(): string
48
    {
49
        return $this->gtid;
50
    }
51
52
    public function setGtid(string $gtid): void
53
    {
54
        $this->gtid = $gtid;
55
    }
56
57
    public function getMariaDbGtid(): string
58
    {
59
        return $this->mariaDbGtid;
60
    }
61
62
    public function setMariaDbGtid(string $mariaDbGtid): void
63
    {
64
        $this->mariaDbGtid = $mariaDbGtid;
65
    }
66
67
    public function jsonSerialize()
68
    {
69
        return get_object_vars($this);
70
    }
71
}