HeaderAuthentication::getHeaders()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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