| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class MariaDbGtidListDTO extends EventDTO |
||
| 10 | { |
||
| 11 | private $type = ConstEventsNames::MARIADB_GTID_LIST; |
||
| 12 | private $mariaDbGtidList; |
||
| 13 | |||
| 14 | public function __construct( |
||
| 15 | EventInfo $eventInfo, |
||
| 16 | string $mariaDbGtidList |
||
| 17 | ) { |
||
| 18 | parent::__construct($eventInfo); |
||
| 19 | |||
| 20 | $this->mariaDbGtidList = $mariaDbGtidList; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function __toString(): string |
||
| 24 | { |
||
| 25 | return PHP_EOL . |
||
| 26 | '=== Event ' . $this->getType() . ' === ' . PHP_EOL . |
||
| 27 | 'Date: ' . $this->eventInfo->getDateTime() . PHP_EOL . |
||
| 28 | 'Log position: ' . $this->eventInfo->getPos() . PHP_EOL . |
||
| 29 | 'Event size: ' . $this->eventInfo->getSize() . PHP_EOL . |
||
| 30 | 'Global Transaction ID: ' . $this->mariaDbGtidList . PHP_EOL; |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | public function getType(): string |
||
| 35 | { |
||
| 36 | return $this->type; |
||
| 37 | } |
||
| 38 | |||
| 39 | #[\ReturnTypeWillChange] |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getMariaDbGtidList(): string |
||
| 48 | } |
||
| 49 | |||
| 50 | } |
||
| 51 |