Passed
Pull Request — master (#6127)
by Angel Fernando Quiroz
08:24
created

UserCreatedHookEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUser() 0 3 1
A getOriginalPassword() 0 3 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
declare(strict_types=1);
6
7
namespace Chamilo\CoreBundle\HookEvent;
8
9
use Chamilo\CoreBundle\Entity\User;
10
11
class UserCreatedHookEvent extends HookEvent
12
{
13
    public function getUser(): ?User
14
    {
15
        return $this->data['return'] ?? null;
16
    }
17
18
    public function getOriginalPassword(): ?string
19
    {
20
        return $this->data['originalPassword'] ?? null;
21
    }
22
}
23