Passed
Push — master ( 65b7f9...30151a )
by Chris
15:10
created

GuzzleServerRequestServiceProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 20
ccs 0
cts 8
cp 0
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A factory() 0 3 1
A id() 0 3 1
A types() 0 3 1
A shared() 0 3 1
1
<?php
2
3
namespace Leonidas\Framework\Provider\League;
4
5
use Leonidas\Framework\Provider\GuzzleServerRequestProvider;
6
use Leonidas\Framework\Provider\League\Abstracts\AbstractLeagueServiceFactory;
7
use Panamax\Contracts\ServiceFactoryInterface;
8
use Psr\Http\Message\ServerRequestInterface;
9
10
class GuzzleServerRequestServiceProvider extends AbstractLeagueServiceFactory
11
{
12
    protected function id(): string
13
    {
14
        return 'server_request';
15
    }
16
17
    protected function types(): array
18
    {
19
        return [ServerRequestInterface::class];
20
    }
21
22
    protected function factory(): ServiceFactoryInterface
23
    {
24
        return new GuzzleServerRequestProvider();
25
    }
26
27
    protected function shared(): ?bool
28
    {
29
        return false;
30
    }
31
}
32