Md5::sign()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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