DoctrineObjectEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 3
dl 0
loc 20
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A getIdentity() 0 3 1
A getLifecycleEventArgs() 0 3 1
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