Completed
Push — master ( bd4cbc...df0c76 )
by Arnaud
9s
created

AdminCreatedEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getAdmin() 0 4 1
1
<?php
2
3
namespace LAG\AdminBundle\Admin\Event;
4
5
use LAG\AdminBundle\Admin\AdminInterface;
6
use Symfony\Component\EventDispatcher\Event;
7
8
class AdminCreatedEvent extends Event
9
{
10
    /**
11
     * Admin recently created
12
     *
13
     * @var AdminInterface
14
     */
15
    protected $admin;
16
17
    /**
18
     * AdminCreatedEvent constructor.
19
     *
20
     * @param AdminInterface $admin
21
     */
22 2
    public function __construct(AdminInterface $admin)
23
    {
24 2
        $this->admin = $admin;
25 2
    }
26
27
    /**
28
     * @return AdminInterface
29
     */
30 1
    public function getAdmin()
31
    {
32 1
        return $this->admin;
33
    }
34
}
35