protected function guardRequiredState()
 {
     parent::guardRequiredState();
     Assertion::keyExists($this->data, 'parent_node_id');
     Assertion::string($this->data['parent_node_id']);
     if ($this->data['parent_node_id'] !== '') {
         Assertion::regex($this->data['parent_node_id'], '/[\\w\\.\\-_]{1,128}\\-\\w{8}\\-\\w{4}\\-\\w{4}\\-\\w{4}\\-\\w{12}\\-\\w{2}_\\w{2}\\-\\d+/');
     }
 }
 protected function onAggregateRootModified(AggregateRootModifiedEvent $event)
 {
     $ar_type = $this->aggregate_root_type_map->getItem($event->getAggregateRootType());
     $this->moveTempFilesToFinalLocation($event, $ar_type);
 }
 protected function guardRequiredState()
 {
     parent::guardRequiredState();
     Assertion::keyExists($this->data, 'workflow_state');
     Assertion::string($this->data['workflow_state']);
 }