File tree Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Expand file tree Collapse file tree 5 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 55namespace  MySQLReplication \Definitions ;
66
77/** 
8-  * @see https://dev.mysql. com/doc/internals/en/ event-classes-and-types.html  
8+  * @see https://github. com/mysql/mysql-server/blob/824e2b4064053f7daf17d7f3f84b7a3ed92e5fb4/libs/mysql/binlog/ event/binlog_event.h#L285 (MySQL binlog_event.h)  
99 */ 
1010enum  ConstEventType: int 
1111{
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public function consume(): void
3737 {
3838 $ binaryDataReadernew  BinaryDataReader ($ this binLogSocketConnect ->getResponse ());
3939
40-  // check EOF_Packet -> https://dev.mysql.com/doc/internals/en/packet-EOF_Packet .html 
40+  // check EOF_Packet -> https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_basic_eof_packet .html 
4141 if  ($ binaryDataReaderreadUInt8 () === self ::EOF_HEADER_VALUE ) {
4242 return ;
4343 }
@@ -127,6 +127,9 @@ private function makeEvent(BinaryDataReader $binaryDataReader): ?EventDTO
127127 return  null ;
128128 }
129129
130+  /** 
131+  * @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_binlog_event_header 
132+  */ 
130133 private  function  createEventInfo (BinaryDataReader $ binaryDataReaderEventInfo 
131134 {
132135 return  new  EventInfo (
Original file line number Diff line number Diff line change 77use  MySQLReplication \Event \DTO \QueryDTO ;
88
99/** 
10-  * @see https://dev.mysql.com/doc/internals/en/query-event .html 
10+  * @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event .html#sect_protocol_replication_event_query  
1111 */ 
1212class  QueryEvent extends  EventCommon
1313{
Original file line number Diff line number Diff line change 77use  MySQLReplication \Event \DTO \RotateDTO ;
88
99/** 
10-  * @see https://dev.mysql.com/doc/internals/en/rotate-event .html 
10+  * @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event .html#sect_protocol_replication_event_rotate  
1111 */ 
1212class  RotateEvent extends  EventCommon
1313{
Original file line number Diff line number Diff line change 66
77use  MySQLReplication \Event \DTO \XidDTO ;
88
9+ /** 
10+  * @see https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_replication_binlog_event.html#sect_protocol_replication_event_xid 
11+  */ 
912class  XidEvent extends  EventCommon
1013{
1114 public  function  makeXidDTO (): XidDTO 
                         You can’t perform that action at this time. 
           
                  
0 commit comments