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

GroupedItem::getIterator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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
}