Zend\File\Transfer\Adapter\AbstractAdapter::getHash
Returns the hash for a given file
Signature
public function getHash([string
$hash = 'crc32',
[string|array
$files = null]] )
Parameters
$hash
— string- Hash algorithm to use
$files
— object- Files to return the hash for
Returns
- string|array
- Hashstring
Errors/Exceptions
-
InvalidArgumentException
- On unknown hash algorithm