Removed unused code, fixed undefined variables

This commit is contained in:
Shoghi Cervantes
2014-10-11 22:22:51 +02:00
parent bf89ea1cf6
commit ebb844fa52
16 changed files with 14 additions and 29 deletions

View File

@ -54,6 +54,7 @@ abstract class Event{
throw new \BadMethodCallException("Event is not Cancellable");
}
/** @var Event $this */
return $this->isCancelled === true;
}
@ -68,6 +69,8 @@ abstract class Event{
if(!($this instanceof Cancellable)){
throw new \BadMethodCallException("Event is not Cancellable");
}
/** @var Event $this */
$this->isCancelled = (bool) $value;
}