| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 10 | public function makeGTIDLogDTO(): GTIDLogDTO |
||
| 11 | { |
||
| 12 | $commitFlag = 1 === $this->binaryDataReader->readUInt8(); |
||
| 13 | $sid = unpack('H*', $this->binaryDataReader->read(16))[1]; |
||
| 14 | $gno = $this->binaryDataReader->readUInt64(); |
||
| 15 | |||
| 16 | $gtid = vsprintf('%s%s%s%s%s%s%s%s-%s%s%s%s-%s%s%s%s-%s%s%s%s-%s%s%s%s%s%s%s%s%s%s%s%s', str_split($sid)) . ':' . $gno; |
||
|
|
|||
| 17 | |||
| 18 | $this->eventInfo->getBinLogCurrent()->setGtid($gtid); |
||
| 19 | |||
| 20 | return new GTIDLogDTO( |
||
| 21 | $this->eventInfo, |
||
| 22 | $commitFlag, |
||
| 23 | $gtid |
||
| 24 | ); |
||
| 27 |