Passed
Push — master ( 2bfb13...b8de7b )
by De Cramer
02:14
created

GroupedItem   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 71.43%

Importance

Changes 0
Metric Value
dl 0
loc 24
ccs 5
cts 7
cp 0.7143
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

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