コード例 #1
0
 /**
  * @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'));
 }
コード例 #2
0
 /**
  * @since 4.8.1
  */
 protected function _construct()
 {
     // Default depth
     if (!$this->hasBaseNamespaceDepth()) {
         $this->setBaseNamespaceDepth(3);
     }
     parent::_construct();
 }