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

CollectToKeyValueArrayOperation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 1
Metric Value
wmc 1
c 1
b 1
f 1
lcom 0
cbo 0
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A apply() 0 4 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