EventCommon   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 11
ccs 3
cts 3
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
namespace MySQLReplication\Event;
5
6
use MySQLReplication\BinaryDataReader\BinaryDataReader;
7
8
abstract class EventCommon
9
{
10
    protected $eventInfo;
11
    protected $binaryDataReader;
12
13 58
    public function __construct(
14
        EventInfo $eventInfo,
15
        BinaryDataReader $binaryDataReader
16
    ) {
17 58
        $this->eventInfo = $eventInfo;
18 58
        $this->binaryDataReader = $binaryDataReader;
19
    }
20
}