Completed
Push — master ( e112b2...aa67e9 )
by De Cramer
02:06
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 3
    public function __construct($iterator)
23
    {
24 3
        $this->iterator = $iterator;
25 3
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30 2
    public function getIterator()
31
    {
32 2
        return $this->iterator;
33
    }
34
35 1
    public function getMethod()
36
    {
37 1
        return DataItemInterface::SIGNAL_DATA;
38
    }
39
}
40