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

AfterUserDeleteEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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