DeleteUserEvent::getUserVO()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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