PHP Class Airship\Engine\Continuum\Updaters\UpdateInfo

Contains metadata about an update.
Afficher le fichier Open project: paragonie/airship Class Usage Examples

Protected Properties

Свойство Type Description
$channel string
$checksum string
$merkleRoot string
$packageName string
$releaseInfo *
$response array
$supplierName string

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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() public méthode

Get the channel that we retrieved this update from.
public getChannel ( ) : string
Résultat string

getChannelPublicKey() public méthode

Get the channel's public key
public getChannelPublicKey ( ) : SignaturePublicKey
Résultat ParagonIE\Halite\Asymmetric\SignaturePublicKey

getChecksum() public méthode

Get the checksum of the file.
public getChecksum ( ) : string
Résultat string

getMerkleRoot() public méthode

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

getPackageName() public méthode

Get the name of the package we're updating
public getPackageName ( ) : string
Résultat string

getResponse() public méthode

Get the full response body
public getResponse ( ) : array
Résultat array

getSignature() public méthode

Get the signature
public getSignature ( boolean $hex = false ) : string
$hex boolean
Résultat string

getSupplierName() public méthode

Get the supplier's name
public getSupplierName ( ) : string
Résultat string

getVersion() public méthode

Get the version for this particular update
public getVersion ( ) : string
Résultat string

getVersionExpanded() public méthode

Get the expanded version for this particular update
public getVersionExpanded ( ) : integer
Résultat integer

Property Details

$channel protected_oe property

protected string $channel
Résultat string

$checksum protected_oe property

protected string $checksum
Résultat string

$merkleRoot protected_oe property

protected string $merkleRoot
Résultat string

$packageName protected_oe property

protected string $packageName
Résultat string

$releaseInfo protected_oe property

*
protected $releaseInfo

$response protected_oe property

protected array $response
Résultat array

$supplierName protected_oe property

protected string $supplierName
Résultat string