XidEvent::makeXidDTO()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace MySQLReplication\Event;
5
6
use MySQLReplication\Event\DTO\XidDTO;
7
8
class XidEvent extends EventCommon
9
{
10 3
    public function makeXidDTO(): XidDTO
11
    {
12 3
        return new XidDTO(
13 3
            $this->eventInfo,
14 3
            $this->binaryDataReader->readUInt64()
15 3
        );
16
    }
17
}
18