Property | Type | Description | |
---|---|---|---|
$hash | string | ||
$path | string | ||
$size | integer | ||
$version | string |
Method | Description | |
---|---|---|
__construct ( array $data ) | UpdateFile constructor. | |
getHash ( ) : string | Get the hex-encoded hash of the file contents | |
getPath ( ) : string | Get the name of the file | |
getSize ( ) : integer | Get the size of the file | |
getVersion ( ) : string | Get the version of a particular update file. | |
hashMatches ( string $hash ) : boolean | Does the given hash match the file? |
public getVersion ( ) : string | ||
return | string |
public hashMatches ( string $hash ) : boolean | ||
$hash | string | |
return | boolean |