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

KernelEvent::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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