Fixed some doc problems

This commit is contained in:
Dylan K. Taylor
2017-06-25 12:07:28 +01:00
parent c0377fc63a
commit a365c831a8
28 changed files with 50 additions and 33 deletions

View File

@ -36,7 +36,9 @@ abstract class Event{
* Not doing so will deny the proper event initialization
*/
/** @var string|null */
protected $eventName = null;
/** @var bool */
private $isCancelled = false;
/**

View File

@ -48,7 +48,7 @@ class TranslationContainer extends TextContainer{
/**
* @param int $i
*
* @return string
* @return string|null
*/
public function getParameter($i){
return isset($this->params[$i]) ? $this->params[$i] : null;

View File

@ -36,6 +36,7 @@ use pocketmine\entity\Vehicle;
class EntityDespawnEvent extends EntityEvent{
public static $handlerList = null;
/** @var int */
private $entityType;
/**

View File

@ -36,6 +36,7 @@ use pocketmine\entity\Vehicle;
class EntitySpawnEvent extends EntityEvent{
public static $handlerList = null;
/** @var int */
private $entityType;
/**

View File

@ -33,7 +33,9 @@ use pocketmine\utils\Utils;
class LowMemoryEvent extends ServerEvent{
public static $handlerList = null;
/** @var int */
private $memory;
/** @var int */
private $memoryLimit;
private $triggerCount;
private $global;
@ -60,7 +62,7 @@ class LowMemoryEvent extends ServerEvent{
* @return int
*/
public function getMemoryLimit(){
return $this->memory;
return $this->memoryLimit;
}
/**