PHP 클래스 Airship\Engine\Continuum\Updaters\UpdateInfo

Contains metadata about an update.
파일 보기 프로젝트 열기: paragonie/airship 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$channel string
$checksum string
$merkleRoot string
$packageName string
$releaseInfo *
$response array
$supplierName string

공개 메소드들

메소드 설명
__construct ( array $json, string $channelURL, SignaturePublicKey $channelPublicKey, string $supplierName, string $packageName ) UpdateInfo constructor.
getChannel ( ) : string Get the channel that we retrieved this update from.
getChannelPublicKey ( ) : SignaturePublicKey Get the channel's public key
getChecksum ( ) : string Get the checksum of the file.
getMerkleRoot ( boolean $raw = false ) : string Get the expected Merkle root (verify with Keyggdrasil's cache)
getPackageName ( ) : string Get the name of the package we're updating
getResponse ( ) : array Get the full response body
getSignature ( boolean $hex = false ) : string Get the signature
getSupplierName ( ) : string Get the supplier's name
getVersion ( ) : string Get the version for this particular update
getVersionExpanded ( ) : integer Get the expanded version for this particular update

메소드 상세

__construct() 공개 메소드

UpdateInfo constructor.
public __construct ( array $json, string $channelURL, SignaturePublicKey $channelPublicKey, string $supplierName, string $packageName )
$json array
$channelURL string
$channelPublicKey ParagonIE\Halite\Asymmetric\SignaturePublicKey
$supplierName string
$packageName string

getChannel() 공개 메소드

Get the channel that we retrieved this update from.
public getChannel ( ) : string
리턴 string

getChannelPublicKey() 공개 메소드

Get the channel's public key
public getChannelPublicKey ( ) : SignaturePublicKey
리턴 ParagonIE\Halite\Asymmetric\SignaturePublicKey

getChecksum() 공개 메소드

Get the checksum of the file.
public getChecksum ( ) : string
리턴 string

getMerkleRoot() 공개 메소드

Get the expected Merkle root (verify with Keyggdrasil's cache)
public getMerkleRoot ( boolean $raw = false ) : string
$raw boolean
리턴 string

getPackageName() 공개 메소드

Get the name of the package we're updating
public getPackageName ( ) : string
리턴 string

getResponse() 공개 메소드

Get the full response body
public getResponse ( ) : array
리턴 array

getSignature() 공개 메소드

Get the signature
public getSignature ( boolean $hex = false ) : string
$hex boolean
리턴 string

getSupplierName() 공개 메소드

Get the supplier's name
public getSupplierName ( ) : string
리턴 string

getVersion() 공개 메소드

Get the version for this particular update
public getVersion ( ) : string
리턴 string

getVersionExpanded() 공개 메소드

Get the expanded version for this particular update
public getVersionExpanded ( ) : integer
리턴 integer

프로퍼티 상세

$channel 보호되어 있는 프로퍼티

protected string $channel
리턴 string

$checksum 보호되어 있는 프로퍼티

protected string $checksum
리턴 string

$merkleRoot 보호되어 있는 프로퍼티

protected string $merkleRoot
리턴 string

$packageName 보호되어 있는 프로퍼티

protected string $packageName
리턴 string

$releaseInfo 보호되어 있는 프로퍼티

*
protected $releaseInfo

$response 보호되어 있는 프로퍼티

protected array $response
리턴 array

$supplierName 보호되어 있는 프로퍼티

protected string $supplierName
리턴 string