Completed
Push — master ( e5e74e...13adb5 )
by Yo
02:16
created

KernelEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getKernel() 0 4 1
A setName() 0 4 1
A getName() 0 4 1
1
<?php
2
namespace Yoanm\Behat3SymfonyExtension\Event;
3
4
use Symfony\Component\EventDispatcher\Event;
5
use Symfony\Component\HttpKernel\Kernel;
6
7
class KernelEvent extends Event
8
{
9
    /** @var Kernel */
10
    private $kernel;
11
    /** @var string */
12
    private $name;
13
14
    /**
15
     * @param Kernel $kernel
16
     */
17 5
    public function __construct(Kernel $kernel)
18
    {
19 5
        $this->kernel = $kernel;
20 5
    }
21
22
    /**
23
     * @return Kernel
24
     */
25 1
    public function getKernel()
26
    {
27 1
        return $this->kernel;
28
    }
29
30
    /**
31
     * @param string $name
32
     */
33 1
    public function setName($name)
34
    {
35 1
        $this->name = $name;
36 1
    }
37
38
    /**
39
     * @return string
40
     */
41 1
    public function getName()
42
    {
43 1
        return $this->name;
44
    }
45
}
46