Test Failed
Push — master ( 4bd70e...3667db )
by Grupo
04:16
created

ModuleWasCreated   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 23
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
    public function __construct(Module $module)
23
    {
24
        $this->module = $module;
25
    }
26
27
    /**
28
     * @return Module
29
     */
30
    public function getModule(): Module
31
    {
32
        return $this->module;
33
    }
34
35
    public function getName(): string
36
    {
37
        return self::NAME;
38
    }
39
}