/** * Register this panel * * @param array items for add to pannel */ public static function register(array $items = NULL) { if (self::$registered) { throw new \InvalidStateException("Callback panel is already registered"); } NDebugger::addPanel(new static($items)); self::$registered = TRUE; }