public function Workflow::__clone in Workflow 7.2
File
- includes/
Entity/ Workflow.php, line 32 - Contains workflow\includes\Entity\Workflow. Contains workflow\includes\Entity\WorkflowController.
Class
Code
public function __clone() {
// Clone the arrays of States and Transitions.
foreach ($this->states as &$state) {
$state = clone $state;
}
foreach ($this->transitions as &$transition) {
$transition = clone $transition;
}
}