| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function makeMariaDbGTIDListDTO(): MariaDbGtidListDTO |
||
| 11 | { |
||
| 12 | $gtid_count = $this->binaryDataReader->readUInt32(); |
||
| 13 | $gtid_list = []; |
||
| 14 | for($i=0;$i < $gtid_count;$i++) { |
||
| 15 | $domainId = $this->binaryDataReader->readUInt32(); |
||
| 16 | $serverId = $this->binaryDataReader->readUInt32(); |
||
| 17 | $seq = $this->binaryDataReader->readUInt64(); |
||
| 18 | array_push($gtid_list,$domainId . '-' . $serverId . '-' . $seq); |
||
| 19 | } |
||
| 20 | $mariaDbGtidList = implode(',', $gtid_list); |
||
| 21 | |||
| 22 | //$this->eventInfo->getBinLogCurrent()->setMariaDbGtid($mariaDbGtid); |
||
| 23 | |||
| 24 | return new MariaDbGtidListDTO( |
||
| 25 | $this->eventInfo, |
||
| 26 | $mariaDbGtidList |
||
| 27 | ); |
||
| 30 |