Md5   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A sign() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Signature Provider Class
6
 * @category    Ticaje
7
 * @author      Max Demian <[email protected]>
8
 */
9
10
namespace Ticaje\AeSdk\Infrastructure\Provider\Signature\Algorithm\Hash;
11
12
use Ticaje\AeSdk\Infrastructure\Interfaces\Provider\Signature\Algorithm\Md5AlgorithmInterface;
13
14
/**
15
 * Class Hash
16
 * @package Ticaje\AeSdk\Infrastructure\Provider\Signature\Algorithm\Hash
17
 */
18
class Md5 implements Md5AlgorithmInterface
19
{
20
    /**
21
     * @inheritDoc
22
     * A little I.S.P issue since no needed secret for this algorithm
23
     */
24
    public function sign(string $message): string
25
    {
26
        return md5($message);
27
    }
28
}
29