Add methods bin() and hex()

This commit is contained in:
travail 2015-01-09 18:47:19 +09:00
parent ba43d87019
commit 5a18a4ce12

View File

@ -5,10 +5,18 @@ namespace Image\PerceptualHash;
interface Algorithm
{
/**
* Calculate the hash
* Calculate the binary hash
*
* @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);
}