PHP Класс Airship\Engine\Continuum\Updaters\UpdateInfo

Contains metadata about an update.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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