public function __construct($checker = false) { if ($checker !== true) { throw new \Exception("Someone tried to new moduleHook. This is a bug"); } self::$obj = $this; }