phpdoc armageddon for master, pass 1

This commit is contained in:
Dylan K. Taylor
2020-01-22 11:55:03 +00:00
parent 4bae3baa74
commit 67bcc1c0fb
397 changed files with 0 additions and 5391 deletions

View File

@ -49,10 +49,6 @@ class AutoUpdater{
/** @var \Logger */
private $logger;
/**
* @param Server $server
* @param string $endpoint
*/
public function __construct(Server $server, string $endpoint){
$this->server = $server;
$this->logger = new \PrefixedLogger($server->getLogger(), "Auto Updater");
@ -69,8 +65,6 @@ class AutoUpdater{
/**
* Callback used at the end of the update checking task
*
* @param array $updateInfo
*/
public function checkUpdateCallback(array $updateInfo) : void{
$this->updateInfo = $updateInfo;
@ -91,8 +85,6 @@ class AutoUpdater{
/**
* Returns whether there is an update available.
*
* @return bool
*/
public function hasUpdate() : bool{
return $this->newVersion !== null;
@ -115,8 +107,6 @@ class AutoUpdater{
/**
* Shows a warning to a player to tell them there is an update available
*
* @param Player $player
*/
public function showPlayerUpdate(Player $player) : void{
$player->sendMessage(TextFormat::DARK_PURPLE . "The version of " . $this->server->getName() . " that this server is running is out of date. Please consider updating to the latest version.");
@ -148,8 +138,6 @@ class AutoUpdater{
/**
* Returns the last retrieved update data.
*
* @return array|null
*/
public function getUpdateInfo() : ?array{
return $this->updateInfo;
@ -185,8 +173,6 @@ class AutoUpdater{
/**
* Returns the channel used for update checking (stable, beta, dev)
*
* @return string
*/
public function getChannel() : string{
$channel = strtolower($this->server->getProperty("auto-updater.preferred-channel", "stable"));
@ -199,8 +185,6 @@ class AutoUpdater{
/**
* Returns the host used for update checks.
*
* @return string
*/
public function getEndpoint() : string{
return $this->endpoint;