| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 1 | public function makeRotateEventDTO(): RotateDTO |
|
| 15 | { |
||
| 16 | 1 | $binFilePos = (int)$this->binaryDataReader->readUInt64(); |
|
| 17 | 1 | $binFileName = $this->binaryDataReader->read( |
|
| 18 | 1 | $this->eventInfo->getSizeNoHeader() - $this->getSizeToRemoveByVersion() |
|
| 19 | ); |
||
| 20 | |||
| 21 | 1 | $this->eventInfo->getBinLogCurrent()->setBinLogPosition($binFilePos); |
|
| 22 | 1 | $this->eventInfo->getBinLogCurrent()->setBinFileName($binFileName); |
|
| 23 | |||
| 24 | 1 | return new RotateDTO( |
|
| 25 | 1 | $this->eventInfo, |
|
| 26 | $binFilePos, |
||
| 27 | $binFileName |
||
| 28 | ); |
||
| 39 | } |