PHP Class Airship\Engine\Continuum\Installers\InstallFile

All of the information pertinent to a file we are installing.
Afficher le fichier Open project: paragonie/airship Class Usage Examples

Protected Properties

Свойство Type Description
$hash string
$path string
$releaseInfo array
$size integer
$supplier Airship\Engine\Continuum\Supplier
$version string

Méthodes publiques

Méthode Description
__construct ( Supplier $supplier, array $data ) InstallFile constructor.
getHash ( ) : string Get the hex-encoded hash of the file contents
getMerkleRoot ( ) : string Get the Merkle root that matches this version's release
getPath ( ) : string Get the name of the file
getSignature ( ) : string Get the hex-encoded signature for this 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?
signatureIsValid ( boolean $fastExit = false ) : boolean Check that the signature is valid for this supplier's public keys.

Method Details

__construct() public méthode

InstallFile constructor.
public __construct ( Supplier $supplier, array $data )
$supplier Airship\Engine\Continuum\Supplier
$data array

getHash() public méthode

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

getMerkleRoot() public méthode

Get the Merkle root that matches this version's release
public getMerkleRoot ( ) : string
Résultat string

getPath() public méthode

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

getSignature() public méthode

Get the hex-encoded signature for this file.
public getSignature ( ) : 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

signatureIsValid() public méthode

Check that the signature is valid for this supplier's public keys.
public signatureIsValid ( boolean $fastExit = false ) : boolean
$fastExit boolean
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

$releaseInfo protected_oe property

protected array $releaseInfo
Résultat array

$size protected_oe property

protected int $size
Résultat integer

$supplier protected_oe property

protected Supplier,Airship\Engine\Continuum $supplier
Résultat Airship\Engine\Continuum\Supplier

$version protected_oe property

protected string $version
Résultat string