DataItem   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getData() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Oliverde8\Component\PhpEtl\Item;
6
7
/**
8
 * Class DataItem
9
 *
10
 * @author    de Cramer Oliver<[email protected]>
11
 * @copyright 2018 Oliverde8
12
 * @package Oliverde8\Component\PhpEtl\Item
13
 */
14
class DataItem implements DataItemInterface
15
{
16
    /**
17
     * @var mixed
18
     */
19
    protected $data;
20
21
    /**
22
     * DataItem constructor.
23
     *
24 13
     * @param mixed $data
25
     */
26 13
    public function __construct($data)
27 13
    {
28
        $this->data = $data;
29
    }
30
31
    public function getData()
32 13
    {
33
       return $this->data;
34 13
    }
35
}
36