Issues (16)

src/Event/RegistrationResponseInvalidEvent.php (1 issue)

Labels
Severity
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;
0 ignored issues
show
The type U2FAuthentication\RegistrationResponse was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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