PHP 클래스 Airship\Engine\Continuum\Installers\InstallFile

All of the information pertinent to a file we are installing.
파일 보기 프로젝트 열기: paragonie/airship 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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