659. Class

659.1. Zend\Validator\File\Hash

Validator for the hash of given files

659.1.1. Methods

659.1.1.1. __construct

__construct()

Sets validator options

Parameters:string|array

659.1.1.2. getHash

getHash()

Returns the set hash values as array, the hash as key and the algorithm the value

Return type:array

659.1.1.3. setHash

setHash()

Sets the hash for one or multiple files

Parameters:string|array
Return type:Hash Provides a fluent interface

659.1.1.4. addHash

addHash()

Adds the hash for one or multiple files

Parameters:string|array
Return type:Hash Provides a fluent interface
Throws :ExceptionInvalidArgumentException

659.1.1.5. isValid

isValid()

Returns true if and only if the given file confirms the set hash

Parameters:string|array – File to check for hash
Return type:bool

659.1.2. Constants

659.1.2.1. DOES_NOT_MATCH

@const string Error constants

659.1.2.2. NOT_DETECTED

659.1.2.3. NOT_FOUND