TokensReplacementCall   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 36
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
A getStep() 0 4 1
1
<?php
2
3
/**
4
 * @author Alexei Gorobet <[email protected]>
5
 */
6
7
namespace Behat\TokensExtension\Call;
8
9
use Behat\Behat\Definition\Definition;
10
use Behat\Gherkin\Node\StepNode;
11
use Behat\Testwork\Environment\Call\EnvironmentCall;
12
use Behat\Testwork\Environment\Environment;
13
14
/**
15
 * Call extended with tokens replacement information.
16
 */
17
final class TokensReplacementCall extends EnvironmentCall
18
{
19
    /**
20
     * @var StepNode
21
     */
22
    private $step;
23
24
    /**
25
     * Initializes call.
26
     *
27
     * @param Environment    $environment
28
     * @param TokensReplacement $tokensReplacement
29
     * @param array          $arguments
30
     */
31
    public function __construct(
32
        Environment $environment,
33
        StepNode $step,
34
        TokensReplacement $tokensReplacement,
35
        array $arguments
36
    ) {
37
        parent::__construct($environment, $tokensReplacement, $arguments);
38
39
        $this->step = $step;
40
    }
41
42
    /**
43
     * Returns modified step after tokens replacements.
44
     *
45
     * @todo: Is it used?
46
     * @return StepNode
47
     */
48
    public function getStep()
49
    {
50
        return $this->step;
51
    }
52
}
53