Passed
Push — master ( 24c94f...343727 )
by Alexander
05:37
created

BeforeRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getRequest() 0 3 1
1
<?php
2
3
namespace Yiisoft\Yii\Web\Event;
4
5
use Psr\Http\Message\ServerRequestInterface;
6
7
final class BeforeRequest
8
{
9
    private ServerRequestInterface $request;
10
11
    public function __construct(ServerRequestInterface $request)
12
    {
13
        $this->request = $request;
14
    }
15
16
    public function getRequest(): ServerRequestInterface
17
    {
18
        return $this->request;
19
    }
20
}
21