DeleteUserEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 29
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getUserVO() 0 4 1
1
<?php
2
3
namespace BrainExe\Core\Authentication\Event;
4
5
use BrainExe\Core\Authentication\UserVO;
6
use BrainExe\Core\EventDispatcher\AbstractEvent;
7
8
/**
9
 * @api
10
 */
11
class DeleteUserEvent extends AbstractEvent
12
{
13
14
    const DELETE = 'user.delete';
15
16
    /**
17
     * @var UserVO
18
     */
19
    private $userVo;
20
21
    /**
22
     * @param UserVO $authentication
23
     * @param string $eventName
24
     */
25 1
    public function __construct(UserVO $authentication, string $eventName)
26
    {
27 1
        parent::__construct($eventName);
28
29 1
        $this->userVo = $authentication;
30 1
    }
31
32
    /**
33
     * @return UserVO
34
     */
35 1
    public function getUserVO() : UserVO
36
    {
37 1
        return $this->userVo;
38
    }
39
}
40