TokensContextInterface
last analyzed

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10

1 Method

Rating   Name   Duplication   Size   Complexity  
addToken() 0 1 ?
1
<?php
2
3
/**
4
 * @author Alexei Gorobet <[email protected]>
5
 */
6
7
namespace Behat\TokensExtension\Context;
8
9
use Behat\Behat\Context\Context;
10
11
/**
12
 * Interface TokensContextInterface.
13
 *
14
 * @package Behat\TokensExtension\Context
15
 */
16
interface TokensContextInterface extends Context
17
{
18
    /**
19
     * Set parameters from behat.yml.
20
     *
21
     * @param array $parameters
0 ignored issues
show
Bug introduced by
There is no parameter named $parameters. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
22
     *   An array of parameters from configuration file.
23
     */
24
    public function addToken($token, $value);
25
}
26