WebContext::setKernel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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