DataMapAction::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Thruster\Action\DataMapperActions;
4
5
use Thruster\Component\Actions\Action\BaseAction;
6
7
/**
8
 * Class DataMapAction
9
 *
10
 * @package Thruster\Action\DataMapperActions
11
 * @author  Aurimas Niekis <[email protected]>
12
 */
13
class DataMapAction extends BaseAction
14
{
15
    /**
16
     * DataMapAction constructor.
17
     *
18
     * @param string $mapperName
19
     * @param mixed  $input
20
     */
21 2
    public function __construct(string $mapperName, $input)
22
    {
23 2
        parent::__construct($mapperName, $input);
24 2
    }
25
26
    /**
27
     * @inheritDoc
28
     */
29 1
    public function getName() : string
30
    {
31 1
        return 'thruster_data_mapper_map';
32
    }
33
}
34