Total Complexity | 7 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | class MariaDbGtidLogDTO extends EventDTO |
||
10 | { |
||
11 | private $type = ConstEventsNames::MARIADB_GTID; |
||
12 | private $flag; |
||
13 | private $domainId; |
||
14 | private $mariaDbGtid; |
||
15 | |||
16 | public function __construct( |
||
27 | } |
||
28 | |||
29 | public function __toString(): string |
||
30 | { |
||
31 | return PHP_EOL . |
||
32 | '=== Event ' . $this->getType() . ' === ' . PHP_EOL . |
||
33 | 'Date: ' . $this->eventInfo->getDateTime() . PHP_EOL . |
||
34 | 'Log position: ' . $this->eventInfo->getPos() . PHP_EOL . |
||
35 | 'Event size: ' . $this->eventInfo->getSize() . PHP_EOL . |
||
36 | 'Flag: ' . var_export($this->flag, true) . PHP_EOL . |
||
37 | 'Domain Id: ' . $this->domainId . PHP_EOL . |
||
38 | 'Sequence Number: ' . $this->mariaDbGtid . PHP_EOL; |
||
39 | } |
||
40 | |||
41 | |||
42 | public function getType(): string |
||
43 | { |
||
44 | return $this->type; |
||
45 | } |
||
46 | |||
47 | #[\ReturnTypeWillChange] |
||
48 | public function jsonSerialize() |
||
49 | { |
||
50 | return get_object_vars($this); |
||
51 | } |
||
52 | |||
53 | public function getFlag(): int |
||
54 | { |
||
55 | return $this->flag; |
||
56 | } |
||
57 | |||
58 | public function getMariaDbGtid(): string |
||
61 | } |
||
62 | |||
63 | public function getDomainId(): int |
||
66 | } |
||
67 | } |
||
68 |