Completed
Push — master ( 32bd0c...7e8504 )
by Freek
01:18
created

InvalidSignatureEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Spatie\WebhookClient\Events;
4
5
use Illuminate\Http\Request;
6
7
class InvalidSignatureEvent
8
{
9
    /** @var \Illuminate\Http\Request */
10
    public $request;
11
12
    /** @var string|null */
13
    public $invalidSignature;
14
15
    public function __construct(Request $request, ?string $invalidSignature)
0 ignored issues
show
Bug introduced by
You have injected the Request via parameter $request. This is generally not recommended as there might be multiple instances during a request cycle (f.e. when using sub-requests). Instead, it is recommended to inject the RequestStack and retrieve the current request each time you need it via getCurrentRequest().
Loading history...
16
    {
17
        $this->request = $request;
18
19
        $this->invalidSignature = $invalidSignature;
20
    }
21
}
22
23