-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed json with slash (#48) - Fixed disabling events that are needed (#46) - Changed to @inherit phpdoc in jsonSerialize methods - Removed unused exceptions from phpdoc - Changed moved wiki do readme - Changed added missing php extensions to composer.json - escape using json rpc specification
- Loading branch information
Showing
22 changed files
with
1,016 additions
and
1,038 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,103 +1,99 @@ | ||
<?php | ||
|
||
namespace MySQLReplication\BinLog; | ||
|
||
/** | ||
* Class BinLogCurrent | ||
* @package MySQLReplication\BinLog | ||
*/ | ||
class BinLogCurrent implements \JsonSerializable | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
private $binLogPosition; | ||
/** | ||
* @var string | ||
*/ | ||
private $binFileName; | ||
/** | ||
* @var string | ||
*/ | ||
private $gtid; | ||
/** | ||
* @var string | ||
*/ | ||
private $mariaDbGtid; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getBinLogPosition() | ||
{ | ||
return $this->binLogPosition; | ||
} | ||
|
||
/** | ||
* @param int $binLogPosition | ||
*/ | ||
public function setBinLogPosition($binLogPosition) | ||
{ | ||
$this->binLogPosition = $binLogPosition; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getBinFileName() | ||
{ | ||
return $this->binFileName; | ||
} | ||
|
||
/** | ||
* @param string $binFileName | ||
*/ | ||
public function setBinFileName($binFileName) | ||
{ | ||
$this->binFileName = $binFileName; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getGtid() | ||
{ | ||
return $this->gtid; | ||
} | ||
|
||
/** | ||
* @param string $gtid | ||
*/ | ||
public function setGtid($gtid) | ||
{ | ||
$this->gtid = $gtid; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getMariaDbGtid() | ||
{ | ||
return $this->mariaDbGtid; | ||
} | ||
|
||
/** | ||
* @param string $mariaDbGtid | ||
*/ | ||
public function setMariaDbGtid($mariaDbGtid) | ||
{ | ||
$this->mariaDbGtid = $mariaDbGtid; | ||
} | ||
|
||
/** | ||
* Specify data which should be serialized to JSON | ||
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php | ||
* @return mixed data which can be serialized by <b>json_encode</b>, | ||
* which is a value of any type other than a resource. | ||
* @since 5.4.0 | ||
*/ | ||
public function jsonSerialize() | ||
{ | ||
return get_object_vars($this); | ||
} | ||
<?php | ||
|
||
namespace MySQLReplication\BinLog; | ||
|
||
/** | ||
* Class BinLogCurrent | ||
* @package MySQLReplication\BinLog | ||
*/ | ||
class BinLogCurrent implements \JsonSerializable | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
private $binLogPosition; | ||
/** | ||
* @var string | ||
*/ | ||
private $binFileName; | ||
/** | ||
* @var string | ||
*/ | ||
private $gtid; | ||
/** | ||
* @var string | ||
*/ | ||
private $mariaDbGtid; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getBinLogPosition() | ||
{ | ||
return $this->binLogPosition; | ||
} | ||
|
||
/** | ||
* @param int $binLogPosition | ||
*/ | ||
public function setBinLogPosition($binLogPosition) | ||
{ | ||
$this->binLogPosition = $binLogPosition; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getBinFileName() | ||
{ | ||
return $this->binFileName; | ||
} | ||
|
||
/** | ||
* @param string $binFileName | ||
*/ | ||
public function setBinFileName($binFileName) | ||
{ | ||
$this->binFileName = $binFileName; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getGtid() | ||
{ | ||
return $this->gtid; | ||
} | ||
|
||
/** | ||
* @param string $gtid | ||
*/ | ||
public function setGtid($gtid) | ||
{ | ||
$this->gtid = $gtid; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getMariaDbGtid() | ||
{ | ||
return $this->mariaDbGtid; | ||
} | ||
|
||
/** | ||
* @param string $mariaDbGtid | ||
*/ | ||
public function setMariaDbGtid($mariaDbGtid) | ||
{ | ||
$this->mariaDbGtid = $mariaDbGtid; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function jsonSerialize() | ||
{ | ||
return get_object_vars($this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.