public function addWorkflowDefinition(Identifier $id) { if ($id->getType() != c\T::WORKFLOWDEFINITION) { throw new \Exception(S_SPAN . "The identifier is unacceptable." . E_SPAN); } if ($this->hasWorkflowDefinition($id->getId())) { return $this; } $this->workflow_definitions[] = $id; return $this; }