RS512   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 18
wmc 2
lcom 0
cbo 1
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A hashingAlgorithm() 0 4 1
A name() 0 4 1
1
<?php
2
3
namespace Zenstruck\JWT\Signer\OpenSSL\RSA;
4
5
use Zenstruck\JWT\Signer\OpenSSL\RSA;
6
7
/**
8
 * @author Alessandro Nadalin <[email protected]>
9
 * @author Kevin Bond <[email protected]>
10
 */
11
final class RS512 extends RSA
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16 2
    protected function hashingAlgorithm()
17
    {
18 2
        return OPENSSL_ALGO_SHA512;
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24 3
    public function name()
25
    {
26 3
        return 'RS512';
27
    }
28
}
29