public function init() { if ($this->center == null || $this->zoom == null) { throw new InvalidConfigException('"center", "zoom" and/or "divId" cannot be null'); } $this->_plugins = new PluginManager(); }