GroupedItem   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

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