| Total Complexity | 6 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | class GTIDLogDTO extends EventDTO |
||
| 10 | { |
||
| 11 | private $commit; |
||
| 12 | private $gtid; |
||
| 13 | private $type = ConstEventsNames::GTID; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * GTIDLogEventDTO constructor. |
||
| 17 | * @param EventInfo $eventInfo |
||
| 18 | * @param bool $commit |
||
| 19 | * @param string $gtid |
||
| 20 | */ |
||
| 21 | public function __construct( |
||
| 22 | EventInfo $eventInfo, |
||
| 23 | bool $commit, |
||
| 24 | string $gtid |
||
| 25 | ) { |
||
| 26 | parent::__construct($eventInfo); |
||
| 27 | |||
| 28 | $this->commit = $commit; |
||
| 29 | $this->gtid = $gtid; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function isCommit(): bool |
||
| 33 | { |
||
| 34 | return $this->commit; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getGtid(): string |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getType(): string |
||
| 45 | } |
||
| 46 | |||
| 47 | public function __toString(): string |
||
| 56 | } |
||
| 57 | |||
| 58 | #[\ReturnTypeWillChange] |
||
| 64 |