WebContext   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setKernel() 0 4 1
A __construct() 0 3 1
1
<?php
2
3
namespace Behat\Sf2DemoBundle\Features\Context;
4
5
use Behat\MinkExtension\Context\MinkContext;
6
use Behat\Symfony2Extension\Context\KernelAwareContext;
7
use Symfony\Component\HttpFoundation\Session\Session;
8
use Symfony\Component\HttpKernel\KernelInterface;
9
10
class WebContext extends MinkContext implements KernelAwareContext
11
{
12
    private $kernel;
13
14
    public function __construct(Session $session, $simpleParameter, $simpleArg, array $services, array $params, $nestedParam, $collectionParam)
0 ignored issues
show
Unused Code introduced by
The parameter $session is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $simpleParameter is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $simpleArg is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $services is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $nestedParam is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $collectionParam is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
15
    {
16
    }
17
18
    /**
19
     * Sets HttpKernel instance.
20
     * This method will be automatically called by Symfony2Extension ContextInitializer.
21
     *
22
     * @param KernelInterface $kernel
23
     */
24
    public function setKernel(KernelInterface $kernel)
25
    {
26
        $this->kernel = $kernel;
27
    }
28
}
29