Passed
Push — master ( 5f2788...b5dbf8 )
by Alexander
04:48 queued 02:08
created

BeforeRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 12
ccs 5
cts 5
cp 1
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
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Web\Event;
6
7
use Psr\Http\Message\ServerRequestInterface;
8
9
final class BeforeRequest
10
{
11
    private ServerRequestInterface $request;
12
13 2
    public function __construct(ServerRequestInterface $request)
14
    {
15 2
        $this->request = $request;
16 2
    }
17
18 1
    public function getRequest(): ServerRequestInterface
19
    {
20 1
        return $this->request;
21
    }
22
}
23