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

ActionCreatedEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 40
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getAction() 0 4 1
A getAdmin() 0 4 1
1
<?php
2
3
namespace LAG\AdminBundle\Action\Event;
4
5
use LAG\AdminBundle\Action\ActionInterface;
6
use LAG\AdminBundle\Admin\AdminInterface;
7
use Symfony\Component\EventDispatcher\Event;
8
9
class ActionCreatedEvent extends Event
10
{
11
    /**
12
     * @var ActionInterface
13
     */
14
    protected $action;
15
16
    /**
17
     * @var AdminInterface
18
     */
19
    protected $admin;
20
21
    /**
22
     * ActionCreatedEvent constructor.
23
     *
24
     * @param ActionInterface $action
25
     * @param AdminInterface $admin
26
     */
27 3
    public function __construct(ActionInterface $action, AdminInterface $admin)
28
    {
29 3
        $this->action = $action;
30 3
        $this->admin = $admin;
31 3
    }
32
33
    /**
34
     * @return ActionInterface
35
     */
36 1
    public function getAction()
37
    {
38 1
        return $this->action;
39
    }
40
41
    /**
42
     * @return AdminInterface
43
     */
44 1
    public function getAdmin()
45
    {
46 1
        return $this->admin;
47
    }
48
}
49