Issues (16)

src/Event/SignatureResponseInvalidEvent.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\SignatureResponse;
0 ignored issues
show
The type U2FAuthentication\SignatureResponse 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 SignatureResponseInvalidEvent extends Event
19
{
20
    /**
21
     * @var HasRegisteredKeys
22
     */
23
    private $user;
24
    /**
25
     * @var SignatureResponse
26
     */
27
    private $signatureResponse;
28
29
    /**
30
     * SignatureResponseInvalidEvent constructor.
31
     *
32
     * @param HasRegisteredKeys $user
33
     * @param SignatureResponse $signatureResponse
34
     */
35
    public function __construct(HasRegisteredKeys $user, SignatureResponse $signatureResponse)
36
    {
37
        $this->user = $user;
38
        $this->signatureResponse = $signatureResponse;
39
    }
40
41
    /**
42
     * @return HasRegisteredKeys
43
     */
44
    public function getUser(): HasRegisteredKeys
45
    {
46
        return $this->user;
47
    }
48
49
    /**
50
     * @return SignatureResponse
51
     */
52
    public function getSignatureResponse(): SignatureResponse
53
    {
54
        return $this->signatureResponse;
55
    }
56
}
57