/**
* {@inheritdoc}
*/ publicfunctionmerge(){ if(!$this->sourceWorkspace->hasParent() || $this->sourceWorkspace->parent->target_id != $this->targetWorkspace->id()){ thrownew \InvalidArgumentException('The contents of a workspace can only be merged into its parent workspace.'); }