Completed
Push — master ( edb586...0d041d )
by Kai
14:30 queued 04:32
created

Md5Calculator::getHash()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php namespace SimpleHash\Calculator;
2
3
/**
4
 * MD5 Hash calculator class
5
 *
6
 * @package    SimpleHash
7
 * @author     Kai Hempel <[email protected]>
8
 * @copyright  2016 Kai Hempel <[email protected]>
9
 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
10
 * @link       https://www.kuweh.de/
11
 * @since      Class available since Release 1.0.0
12
 */
13
class Md5Calculator implements HashCalculatorInterface
14
{
15
    /**
16
     * Returns the MD5 hash
17
     *
18
     * @param type $data
19
     * @return type
20
     */
21
    public function getHash($data)
22
    {
23
        return md5($data);
24
    }
25
}
26