DummyTransformer::getRequiredFieldNames()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Netdudes\DataSourceryBundle\Transformers;
3
4
use Netdudes\DataSourceryBundle\DataSource\DataSourceInterface;
5
6
class DummyTransformer implements TransformerInterface
7
{
8
    /**
9
     * The transformer accepts a FieldCollection (a row) and returns it back with
10
     * arbitrary changes to it.
11
     *
12
     * Miscellaneous parameters can be passed through the $parameters array
13
     *
14
     * @param array              $record
15
     * @param DataSourceInterface $dataSource
16
     *
17
     * @return array
18
     *
19
     */
20
    public function transform(array $record, DataSourceInterface $dataSource)
21
    {
22
        return $record;
23
    }
24
25
    public function getRequiredFieldNames()
26
    {
27
        return [];
28
    }
29
}
30