Failed Conditions
Pull Request — master (#16)
by Yo
04:22 queued 02:13
created

KernelEvent::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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 4
    public function __construct(Kernel $kernel)
18
    {
19 4
        $this->kernel = $kernel;
20 4
    }
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
    public function setName($name)
34
    {
35
        $this->name = $name;
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getName()
42
    {
43
        return $this->name;
44
    }
45
}
46