670.1. Zend\Validator\File\Sha1
Validator for the sha1 hash of given files
670.1.1. Methods
670.1.1.1. getSha1
-
getSha1()
Returns all set sha1 hashes
670.1.1.2. setSha1
-
setSha1()
Sets the sha1 hash for one or multiple files
Parameters: | string|array – |
Return type: | Hash Provides a fluent interface |
670.1.1.3. addSha1
-
addSha1()
Adds the sha1 hash for one or multiple files
Parameters: | string|array – |
Return type: | Hash Provides a fluent interface |
670.1.1.4. isValid
-
isValid()
Returns true if and only if the given file confirms the set hash
Parameters: | string – Filename to check for hash |
Return type: | bool |
670.1.2. Constants
670.1.2.1. DOES_NOT_MATCH
@const string Error constants
670.1.2.2. NOT_DETECTED
670.1.2.3. NOT_FOUND