mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
More nullable and void typehints
This commit is contained in:
@ -45,7 +45,7 @@ interface IPlayer extends ServerOperator{
|
||||
/**
|
||||
* @param bool $banned
|
||||
*/
|
||||
public function setBanned(bool $banned);
|
||||
public function setBanned(bool $banned) : void;
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
@ -55,22 +55,22 @@ interface IPlayer extends ServerOperator{
|
||||
/**
|
||||
* @param bool $value
|
||||
*/
|
||||
public function setWhitelisted(bool $value);
|
||||
public function setWhitelisted(bool $value) : void;
|
||||
|
||||
/**
|
||||
* @return Player|null
|
||||
*/
|
||||
public function getPlayer();
|
||||
public function getPlayer() : ?Player;
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getFirstPlayed();
|
||||
public function getFirstPlayed() : ?int;
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getLastPlayed();
|
||||
public function getLastPlayed() : ?int;
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
|
Reference in New Issue
Block a user