Completed
Push — master ( 13d294...ceccc8 )
by Jeroen
21s queued 11s
created

AfterUserDeleteEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getDeletedUser() 0 4 1
A getDeletedBy() 0 4 1
1
<?php
2
3
namespace Kunstmaan\UserManagementBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
final class AfterUserDeleteEvent extends Event
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated with message: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
8
{
9
    /** @var string */
10
    private $deletedUser;
11
    /** @var string */
12
    private $deletedBy;
13
14
    public function __construct(string $deletedUser, string $deletedBy)
15
    {
16
        $this->deletedUser = $deletedUser;
17
        $this->deletedBy = $deletedBy;
18
    }
19
20
    public function getDeletedUser(): string
21
    {
22
        return $this->deletedUser;
23
    }
24
25
    public function getDeletedBy(): string
26
    {
27
        return $this->deletedBy;
28
    }
29
}
30