mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Promote some constructors
This commit is contained in:
@ -32,17 +32,14 @@ use function json_decode;
|
||||
class UpdateCheckTask extends AsyncTask{
|
||||
private const TLS_KEY_UPDATER = "updater";
|
||||
|
||||
/** @var string */
|
||||
private $endpoint;
|
||||
/** @var string */
|
||||
private $channel;
|
||||
/** @var string */
|
||||
private $error = "Unknown error";
|
||||
private string $error = "Unknown error";
|
||||
|
||||
public function __construct(UpdateChecker $updater, string $endpoint, string $channel){
|
||||
public function __construct(
|
||||
UpdateChecker $updater,
|
||||
private string $endpoint,
|
||||
private string $channel
|
||||
){
|
||||
$this->storeLocal(self::TLS_KEY_UPDATER, $updater);
|
||||
$this->endpoint = $endpoint;
|
||||
$this->channel = $channel;
|
||||
}
|
||||
|
||||
public function onRun() : void{
|
||||
|
Reference in New Issue
Block a user