NullProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 15
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAuthorization() 0 4 1
A saveAuthorization() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Facile\OAuth2\HttpClient\Authorization;
6
7
use Facile\OAuth2\HttpClient\Request\OAuth2RequestInterface;
8
use Facile\OpenIDClient\Client\ClientInterface;
9
10
class NullProvider implements AuthorizationProvider
11
{
12 7
    public function getAuthorization(ClientInterface $client, OAuth2RequestInterface $request): ?string
13
    {
14 7
        return null;
15
    }
16
17 4
    public function saveAuthorization(
18
        ClientInterface $client,
19
        OAuth2RequestInterface $request,
20
        string $authorization,
21
        ?int $ttl = null
22
    ): void {
23 4
    }
24
}
25