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

ActionCreatedEvent::getAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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