Completed
Push — master ( 7b9134...0b8956 )
by Rémi
02:47
created

UnableToCreateUserEvent::getReason()   A

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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace MessageApp\Event;
4
5
use League\Event\Event;
6
use MessageApp\User\UndefinedApplicationUser;
7
8
class UnableToCreateUserEvent extends Event
9
{
10
    /**
11
     * @var string
12
     */
13
    const NAME = 'user.failed-creating';
14
15
    /**
16
     * @var UndefinedApplicationUser
17
     */
18
    private $user;
19
20
    /**
21
     * Constructor
22
     *
23
     * @param UndefinedApplicationUser $user
24
     */
25 6
    public function __construct(UndefinedApplicationUser $user)
26
    {
27 6
        $this->user = $user;
28 6
    }
29
30
    /**
31
     * @return UndefinedApplicationUser
32
     */
33 3
    public function getUser()
34
    {
35 3
        return $this->user;
36
    }
37
}
38