ModuleWasCreated   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 23
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A __construct() 0 3 1
A getModule() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: thalesmartins
5
 * Date: 11/12/2018
6
 * Time: 12:28
7
 */
8
9
namespace Saci\Console\Infrastructure\Domain\Events;
10
11
12
use Saci\Console\Domain\Entity\Module;
13
use Symfony\Component\EventDispatcher\Event;
14
15
class ModuleWasCreated extends Event implements \Saci\Console\Domain\Events\ModuleWasCreated
16
{
17
    /**
18
     * @var Module
19
     */
20
    private $module;
21
22 1
    public function __construct(Module $module)
23
    {
24 1
        $this->module = $module;
25 1
    }
26
27
    /**
28
     * @return Module
29
     */
30 1
    public function getModule(): Module
31
    {
32 1
        return $this->module;
33
    }
34
35 1
    public function getName(): string
36
    {
37 1
        return self::NAME;
38
    }
39
}