Completed
Branch master (e87af1)
by Karsten
02:43
created

CollectToKeyValueArrayOperation::apply()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * File was created 07.05.2015 09:11
4
 *
5
 * @author Karsten J. Gerber <[email protected]>
6
 */
7
namespace PeekAndPoke\Component\Psi\Operation\Terminal;
8
9
use PeekAndPoke\Component\Psi\Interfaces\Operation\TerminalOperationInterface;
10
11
/**
12
 * CollectToKeyValueArrayOperation
13
 *
14
 * @author Karsten J. Gerber <[email protected]>
15
 */
16
class CollectToKeyValueArrayOperation implements TerminalOperationInterface
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21 10
    public function apply(\Iterator $set)
22
    {
23 10
        return iterator_to_array($set);
24
    }
25
}
26