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

Hmac::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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