PHP Class Airship\Engine\Continuum\Updaters\UpdateFile

Encapsulates an update file (.phar or .zip)
Afficher le fichier Open project: paragonie/airship Class Usage Examples

Protected Properties

Свойство Type Description
$hash string
$path string
$size integer
$version string

Méthodes publiques

Méthode 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?

Method Details

__construct() public méthode

UpdateFile constructor.
public __construct ( array $data )
$data array

getHash() public méthode

Get the hex-encoded hash of the file contents
public getHash ( ) : string
Résultat string

getPath() public méthode

Get the name of the file
public getPath ( ) : string
Résultat string

getSize() public méthode

Get the size of the file
public getSize ( ) : integer
Résultat integer

getVersion() public méthode

Get the version of a particular update file.
public getVersion ( ) : string
Résultat string

hashMatches() public méthode

Does the given hash match the file?
public hashMatches ( string $hash ) : boolean
$hash string
Résultat boolean

Property Details

$hash protected_oe property

protected string $hash
Résultat string

$path protected_oe property

protected string $path
Résultat string

$size protected_oe property

protected int $size
Résultat integer

$version protected_oe property

protected string $version
Résultat string