EventCommon::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 6
ccs 3
cts 3
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\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
}