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

Sha1Calculator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
dl 0
loc 13
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHash() 0 4 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 Sha1Calculator 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 sha1($data);
24
    }
25
}
26