Typehinted up entity API

Did you guys think ALPHA7 changes were done?!
Sone stuff still needs some work, most notably data-properties can't be typed yet because they are just mushed into a couple of methods.
This commit is contained in:
Dylan K. Taylor
2017-08-16 19:03:39 +01:00
parent ea414ea72d
commit 741394dab1
23 changed files with 197 additions and 149 deletions

View File

@ -42,7 +42,7 @@ interface CommandSender extends Permissible{
/**
* @return string
*/
public function getName();
public function getName() : string;
/**
* Returns the line height of the command-sender's screen. Used for determining sizes for command output pagination

View File

@ -124,7 +124,7 @@ class ConsoleCommandSender implements CommandSender{
/**
* @return string
*/
public function getName(){
public function getName() : string{
return "CONSOLE";
}

View File

@ -44,7 +44,7 @@ class RemoteConsoleCommandSender extends ConsoleCommandSender{
return $this->messages;
}
public function getName(){
public function getName() : string{
return "Rcon";
}