DataMapAction   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 21
ccs 5
cts 5
cp 1
rs 10

2 Methods

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