Completed
Pull Request — master (#1)
by De Cramer
02:11
created

SimpleGroupingFactory::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Oliverde8\Component\PhpEtl\Builder\Factories\Grouping;
4
5
use Oliverde8\Component\PhpEtl\Builder\Factories\AbstractFactory;
6
7
/**
8
 * Class SimpleGroupingFactory
9
 *
10
 * @author    de Cramer Oliver<[email protected]>
11
 * @copyright 2018 Oliverde8
12
 * @package Oliverde8\Component\PhpEtl\Builder\Factories\Grouping
13
 */
14
class SimpleGroupingFactory extends AbstractFactory
15
{
16
    /**
17
     * @inheritdoc
18
     */
19
    public function build($operation, $options)
20
    {
21
        return $this->create($options['grouping-key'], $options['group-identifier']);
22
    }
23
}