/** * @since 4.8.1 * @throws Core\Exception If 'name' index is not present. */ protected function _construct() { parent::_construct(); if (!$this->hasData('name')) { throw new Exception('Could not create event: Name must be specified'); } $this->_setName($this->getData('name')); }
/** * @since 4.8.1 */ protected function _construct() { // Default depth if (!$this->hasBaseNamespaceDepth()) { $this->setBaseNamespaceDepth(3); } parent::_construct(); }