MessageData::__construct()   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 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
cc 1
nc 1
nop 3
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Umbrellio\TableSync\Integration\Laravel\Receive\MessageData;
6
7
class MessageData
8
{
9
    private $table;
10
    private $targetKeys;
11
    private $data;
12
13 10
    public function __construct(string $table, array $targetKeys, array $data)
14
    {
15 10
        $this->table = $table;
16 10
        $this->targetKeys = $targetKeys;
17 10
        $this->data = $data;
18
    }
19
20 5
    public function getTable(): string
21
    {
22 5
        return $this->table;
23
    }
24
25 6
    public function getTargetKeys(): array
26
    {
27 6
        return $this->targetKeys;
28
    }
29
30 9
    public function getData(): array
31
    {
32 9
        return $this->data;
33
    }
34
}
35