KernelEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 21
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getKernel() 0 4 1
1
<?php
2
namespace Yoanm\Behat3SymfonyExtension\Event;
3
4
use Symfony\Component\HttpKernel\KernelInterface;
5
6
class KernelEvent extends AbstractEvent
7
{
8
    /** @var KernelInterface */
9
    private $kernel;
10
11
    /**
12
     * @param KernelInterface $kernel
13
     */
14 6
    public function __construct(KernelInterface $kernel)
15
    {
16 6
        $this->kernel = $kernel;
17 6
    }
18
19
    /**
20
     * @return KernelInterface
21
     */
22 5
    public function getKernel()
23
    {
24 5
        return $this->kernel;
25
    }
26
}
27