HeaderAuthentication   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHeaders() 0 7 1
1
<?php
2
/**
3
 * This file is part of the adlogix/guzzle-atlassian-connect-middleware package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace Adlogix\GuzzleAtlassianConnect\Security;
10
11
/**
12
 * Class HeaderAuthentication
13
 * @package Adlogix\GuzzleAtlassianConnect\Security
14
 * @author  Cedric Michaux <[email protected]>
15
 */
16
class HeaderAuthentication extends AbstractAuthentication
17
{
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getHeaders()
23
    {
24
        return [
25
            "Authorization" => sprintf('JWT %s', $this->token->sign())
26
        ];
27
28
    }
29
}
30