Failed Conditions
Push — feature/kernel-handler ( 2f475f...fb89b7 )
by Yo
04:06 queued 01:02
created

KernelEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 26
ccs 3
cts 5
cp 0.6
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\EventDispatcher\Event;
5
use Symfony\Component\HttpKernel\Kernel;
6
7
class KernelEvent extends Event
8
{
9
    const BEFORE_SHUTDOWN = 'kernel_event.before.shutdown';
10
    const AFTER_SHUTDOWN = 'kernel_event.after.shutdown';
11
    const BEFORE_BOOT = 'kernel_event.before.boot';
12
    const AFTER_BOOT = 'kernel_event.after.boot';
13
14
    /** @var Kernel */
15
    private $kernel;
16
17
    /**
18
     * @param Kernel $kernel
19
     */
20 3
    public function __construct(Kernel $kernel)
21
    {
22 3
        $this->kernel = $kernel;
23 3
    }
24
25
    /**
26
     * @return Kernel
27
     */
28
    public function getKernel()
29
    {
30
        return $this->kernel;
31
    }
32
}
33