| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 1 | public function makeRotateEventDTO(): RotateDTO |
|
| 27 | { |
||
| 28 | 1 | $binFilePos = (int)$this->binaryDataReader->readUInt64(); |
|
| 29 | 1 | $binFileName = $this->binaryDataReader->read( |
|
| 30 | 1 | $this->eventInfo->getSizeNoHeader() - $this->getSizeToRemoveByVersion() |
|
| 31 | 1 | ); |
|
| 32 | |||
| 33 | 1 | $this->eventInfo->getBinLogCurrent()->setBinLogPosition($binFilePos); |
|
| 34 | 1 | $this->eventInfo->getBinLogCurrent()->setBinFileName($binFileName); |
|
| 35 | |||
| 36 | 1 | return new RotateDTO( |
|
| 37 | 1 | $this->eventInfo, |
|
| 38 | 1 | $binFilePos, |
|
| 39 | 1 | $binFileName |
|
| 40 | 1 | ); |
|
| 52 |