PHP Класс Airship\Engine\Continuum\Installers\InstallFile

All of the information pertinent to a file we are installing.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$hash string
$path string
$releaseInfo array
$size integer
$supplier Airship\Engine\Continuum\Supplier
$version string

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

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

getHash() публичный метод

Get the hex-encoded hash of the file contents
public getHash ( ) : string
Результат string

getMerkleRoot() публичный метод

Get the Merkle root that matches this version's release
public getMerkleRoot ( ) : string
Результат string

getPath() публичный метод

Get the name of the file
public getPath ( ) : string
Результат string

getSignature() публичный метод

Get the hex-encoded signature for this file.
public getSignature ( ) : string
Результат string

getSize() публичный метод

Get the size of the file
public getSize ( ) : integer
Результат integer

getVersion() публичный метод

Get the version of a particular update file.
public getVersion ( ) : string
Результат string

hashMatches() публичный метод

Does the given hash match the file?
public hashMatches ( string $hash ) : boolean
$hash string
Результат boolean

signatureIsValid() публичный метод

Check that the signature is valid for this supplier's public keys.
public signatureIsValid ( boolean $fastExit = false ) : boolean
$fastExit boolean
Результат boolean

Описание свойств

$hash защищенное свойство

protected string $hash
Результат string

$path защищенное свойство

protected string $path
Результат string

$releaseInfo защищенное свойство

protected array $releaseInfo
Результат array

$size защищенное свойство

protected int $size
Результат integer

$supplier защищенное свойство

protected Supplier,Airship\Engine\Continuum $supplier
Результат Airship\Engine\Continuum\Supplier

$version защищенное свойство

protected string $version
Результат string