* @copyright Copyright (c) 2013 - 2019, TechFuze. (http://techfuze.net) */ class Event { private bool $cancelled = false; /** * @return bool True if the event is cancelled, false if the event is not cancelled */ public function isCancelled(): bool { return $this->cancelled; } /** * @param bool $cancelled True if the event is cancelled, false if the event is not cancelled */ public function setCancelled(bool $cancelled) { if ($cancelled == true) { $this->cancelled = true; } else { $this->cancelled = false; } } }