for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MySQLReplication\BinLog;
/**
* Class BinLogCurrent
* @package MySQLReplication\BinLog
*/
class BinLogCurrent implements \JsonSerializable
{
* @var int
private $binLogPosition;
* @var string
private $binFileName;
private $gtid;
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;
public function getGtid()
return $this->gtid;
* @param string $gtid
public function setGtid($gtid)
$this->gtid = $gtid;
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);