DefinitionFinder   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A findDefinition() 0 3 1
1
<?php
2
3
namespace Knp\FriendlyContexts\Definition;
4
5
use Behat\Testwork\Environment\Environment;
6
use Behat\Gherkin\Node\FeatureNode;
7
use Behat\Gherkin\Node\StepNode;
8
use Behat\Behat\Definition\DefinitionFinder as BaseDefinitionFinder;
9
10
class DefinitionFinder
11
{
12
    public function __construct(BaseDefinitionFinder $definitionFinder)
13
    {
14
        $this->definitionFinder = $definitionFinder;
0 ignored issues
show
Bug Best Practice introduced by
The property definitionFinder does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
15
    }
16
17
    public function findDefinition(Environment $environment, FeatureNode $feature, StepNode $step)
18
    {
19
        return $this->definitionFinder->findDefinition($environment, $feature, $step);
20
    }
21
}
22