Completed
Push — master ( 962a4f...b86bda )
by Alex
02:47
created

ServerRequestTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 15
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace AlexMasterov\TwigExtension\Traits;
4
5
use Psr\Http\Message\ServerRequestInterface;
6
7
trait ServerRequestTrait
8
{
9
    /**
10
     * @var ServerRequestInterface
11
     */
12
    protected $request;
13
14
    /**
15
     * @param ServerRequestInterface $request
16
     */
17 28
    public function __construct(ServerRequestInterface $request)
18
    {
19 28
        $this->request = $request;
20 28
    }
21
}
22