Add methods bin() and hex()
This commit is contained in:
parent
ba43d87019
commit
5a18a4ce12
@ -5,10 +5,18 @@ namespace Image\PerceptualHash;
|
|||||||
interface Algorithm
|
interface Algorithm
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Calculate the hash
|
* Calculate the binary hash
|
||||||
*
|
*
|
||||||
* @param resource $resource
|
* @param resource $resource
|
||||||
* @return string
|
* @return string Binary string
|
||||||
*/
|
*/
|
||||||
public function calculate($resource);
|
public function bin($resource);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calculate the hex hash
|
||||||
|
*
|
||||||
|
* @param resource $resource
|
||||||
|
* @return string Hex string
|
||||||
|
*/
|
||||||
|
public function hex($binary);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user