Completed
Push — master ( e214c2...9b8774 )
by Kevin
02:27
created

ES384::hashingAlgorithm()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Zenstruck\JWT\Signer\OpenSSL\ECDSA;
4
5
use Zenstruck\JWT\Signer\OpenSSL\ECDSA;
6
7
/**
8
 * @author Alessandro Nadalin <[email protected]>
9
 * @author Kevin Bond <[email protected]>
10
 */
11
final class ES384 extends ECDSA
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16 2
    protected function hashingAlgorithm()
17
    {
18 2
        return OPENSSL_ALGO_SHA384;
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24 3
    public function name()
25
    {
26 3
        return 'ES384';
27
    }
28
}
29