Completed
Push — master ( e112b2...aa67e9 )
by De Cramer
02:06
created

GroupedItem   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 26
ccs 7
cts 7
cp 1
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 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