Completed
Push — master ( 1f3e01...3b63e9 )
by Roman
10:06
created

Hmac   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Framgia\Jwt\Signers;
4
5
class Hmac extends BaseSigner
6
{
7
    /**
8
     * @param  string  $key
9
     * @param  string  $algorithm
10
     */
11
    public function __construct($key, $algorithm = 'sha256')
12
    {
13
        $this->key = $key;
14
        $this->signer = $this->createSigner($algorithm);
15
    }
16
}
17