UpdateCheck
in package
Simple object to make checking result of an update check more consistent.
Tags
Table of Contents
Properties
- $_raw_response : string|null
- $_response : array<string|int, mixed>|null
Methods
- __construct() : mixed
- checksum() : string
- getErrorMessage() : string
- gitHubLink() : string
- hasError() : bool
- instructions() : string
- isUrgent() : bool
- updateAvailable() : bool
- upgradeZipLink() : string
- version() : string
Properties
$_raw_response
private
string|null
$_raw_response
$_response
private
array<string|int, mixed>|null
$_response
Methods
__construct()
public
__construct(HttpClient $update_check_response) : mixed
Parameters
- $update_check_response : HttpClient
checksum()
public
checksum() : string
Return values
stringgetErrorMessage()
public
getErrorMessage() : string
Return values
stringgitHubLink()
public
gitHubLink() : string
Return values
stringhasError()
public
hasError() : bool
Return values
boolinstructions()
public
instructions() : string
Return values
stringisUrgent()
public
isUrgent() : bool
Return values
boolupdateAvailable()
public
updateAvailable() : bool
Return values
boolupgradeZipLink()
public
upgradeZipLink() : string
Return values
stringversion()
public
version() : string