Completed
Push — master ( a78262...4e959e )
by Roni
11:36
created

DoctrineEntityEvent::getIdentity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
 * This file is part of the XiideaEasyAuditBundle package.
4
 *
5
 * (c) Xiidea <http://www.xiidea.net>
6
 *
7
 * This source file is subject to the MIT license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace Xiidea\EasyAuditBundle\Events;
12
13
use Doctrine\ORM\Event\LifecycleEventArgs;
14
use Symfony\Component\EventDispatcher\Event;
15
16
class DoctrineEntityEvent extends Event
17
{
18
    private $identity;
19
20
    /**
21
     * @var \Doctrine\ORM\Event\LifecycleEventArgs
22
     */
23
    private $lifecycleEventArgs;
24
25
    public function __construct(LifecycleEventArgs $lifecycleEventArgs, $identity)
26
    {
27
        $this->lifecycleEventArgs = $lifecycleEventArgs;
28
        $this->identity = $identity;
29
    }
30
31
    /**
32
     * @return LifecycleEventArgs
33
     */
34
    public function getLifecycleEventArgs()
35
    {
36
        return $this->lifecycleEventArgs;
37
    }
38
39
    /**
40
     * @return mixed
41
     */
42
    public function getIdentity()
43
    {
44
        return $this->identity;
45
    }
46
}
47