Passed
Push — master ( 5d1203...fec11d )
by Florent
01:52
created

RegistrationResponseInvalidEvent::getUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * The MIT License (MIT)
5
 *
6
 * Copyright (c) 2018 Spomky-Labs
7
 *
8
 * This software may be modified and distributed under the terms
9
 * of the MIT license.  See the LICENSE file for details.
10
 */
11
12
namespace U2FAuthentication\Bundle\Event;
13
14
use Symfony\Component\EventDispatcher\Event;
15
use U2FAuthentication\Bundle\Model\HasRegisteredKeys;
16
use U2FAuthentication\RegistrationResponse;
17
18
class RegistrationResponseInvalidEvent extends Event
19
{
20
    /**
21
     * @var HasRegisteredKeys
22
     */
23
    private $user;
24
25
    /**
26
     * @var RegistrationResponse
27
     */
28
    private $registrationResponse;
29
30
    /**
31
     * RegistrationResponseInvalidEvent constructor.
32
     *
33
     * @param HasRegisteredKeys    $user
34
     * @param RegistrationResponse $registrationResponse
35
     */
36
    public function __construct(HasRegisteredKeys $user, RegistrationResponse $registrationResponse)
37
    {
38
        $this->user = $user;
39
        $this->registrationResponse = $registrationResponse;
40
    }
41
42
    /**
43
     * @return HasRegisteredKeys
44
     */
45
    public function getUser(): HasRegisteredKeys
46
    {
47
        return $this->user;
48
    }
49
50
    /**
51
     * @return RegistrationResponse
52
     */
53
    public function getRegistrationResponse(): RegistrationResponse
54
    {
55
        return $this->registrationResponse;
56
    }
57
}
58