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

SimpleGroupingFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 3 1
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
}