MessageData   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 10
c 1
b 0
f 0
dl 0
loc 26
ccs 10
cts 10
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getTargetKeys() 0 3 1
A __construct() 0 5 1
A getTable() 0 3 1
A getData() 0 3 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