AppCreateEventRunSuccess   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createEvent() 0 5 1
1
<?php
2
3
/*
4
 *  This file is part of the Micro framework package.
5
 *
6
 *  (c) Stanislau Komar <[email protected]>
7
 *
8
 *  For the full copyright and license information, please view the LICENSE
9
 *  file that was distributed with this source code.
10
 */
11
12
namespace Micro\Kernel\App\Business\Processor;
13
14
use Micro\Component\EventEmitter\EventInterface;
15
use Micro\Kernel\App\AppKernelInterface;
16
use Micro\Kernel\App\Business\Event\ApplicationReadyEvent;
17
18
class AppCreateEventRunSuccess extends AbstractEmitEventProcessor
19
{
20
    /**
21
     * {@inheritDoc}
22
     */
23 8
    protected function createEvent(AppKernelInterface $appKernel): EventInterface
24
    {
25 8
        return new ApplicationReadyEvent(
26 8
            $appKernel,
27 8
            $appKernel->environment()
28 8
        );
29
    }
30
}
31