DoctrineObjectEvent::getLifecycleEventArgs()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
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\Persistence\Event\LifecycleEventArgs;
14
use Symfony\Contracts\EventDispatcher\Event;
15
16
class DoctrineObjectEvent extends Event
17
{
18
    public function __construct(private LifecycleEventArgs $lifecycleEventArgs, private $identity)
19
    {
20
    }
21
22
    /**
23
     * @return LifecycleEventArgs
24
     */
25
    public function getLifecycleEventArgs()
26
    {
27
        return $this->lifecycleEventArgs;
28
    }
29
30
    /**
31
     * @return mixed
32
     */
33
    public function getIdentity()
34
    {
35
        return $this->identity;
36
    }
37
}
38