forked from krowinski/php-mysql-replication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBinLogCurrent.php
69 lines (57 loc) · 1.25 KB
/
BinLogCurrent.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
declare(strict_types=1);
namespace MySQLReplication\BinLog;
use JsonSerializable;
use MySQLReplication\Util\JsonSerializableTrait;
class BinLogCurrent implements JsonSerializable
{
use JsonSerializableTrait;
/**
* @var int
*/
private $binLogPosition = 0;
/**
* @var string
*/
private $binFileName = '';
/**
* @var string
*/
private $gtid;
/**
* @var string
*/
private $mariaDbGtid;
public function getBinLogPosition(): int
{
return $this->binLogPosition;
}
public function setBinLogPosition(int $binLogPosition): void
{
$this->binLogPosition = $binLogPosition;
}
public function getBinFileName(): string
{
return $this->binFileName;
}
public function setBinFileName(string $binFileName): void
{
$this->binFileName = $binFileName;
}
public function getGtid(): string
{
return $this->gtid;
}
public function setGtid(string $gtid): void
{
$this->gtid = $gtid;
}
public function getMariaDbGtid(): string
{
return $this->mariaDbGtid;
}
public function setMariaDbGtid(string $mariaDbGtid): void
{
$this->mariaDbGtid = $mariaDbGtid;
}
}