NullProvider::getAuthorization()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 2
crap 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