| Total Complexity | 6 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 31.58% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class RotateDTO extends EventDTO |
||
| 10 | { |
||
| 11 | private $position; |
||
| 12 | private $nextBinlog; |
||
| 13 | private $type = ConstEventsNames::ROTATE; |
||
| 14 | |||
| 15 | 1 | public function __construct( |
|
| 24 | } |
||
| 25 | |||
| 26 | public function getPosition(): int |
||
| 27 | { |
||
| 28 | return $this->position; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getNextBinlog(): string |
||
| 34 | } |
||
| 35 | |||
| 36 | 1 | public function getType(): string |
|
| 39 | } |
||
| 40 | |||
| 41 | public function __toString(): string |
||
| 42 | { |
||
| 43 | return PHP_EOL . |
||
| 44 | '=== Event ' . $this->getType() . ' === ' . PHP_EOL . |
||
| 45 | 'Date: ' . $this->eventInfo->getDateTime() . PHP_EOL . |
||
| 46 | 'Log position: ' . $this->eventInfo->getPos() . PHP_EOL . |
||
| 47 | 'Event size: ' . $this->eventInfo->getSize() . PHP_EOL . |
||
| 48 | 'Binlog position: ' . $this->position . PHP_EOL . |
||
| 49 | 'Binlog filename: ' . $this->nextBinlog . PHP_EOL; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function jsonSerialize() |
||
| 55 | } |
||
| 56 | } |