* $add = new ezcWorkflowNodeVariableAdd ( * array ( 'name' = > 'variable name' , 'operand' = > $operand ) * ); * * If $value is a string, the value of the workflow variable identified by that string is used. * * Incoming nodes: 1 * Outgoing nodes: 1 * * @package Workflow * @version 1.0 */ class ezcWorkflowNodeVariableAdd extends ezcWorkflowNodeArithmeticBase { /** * Perform variable modification. */ protected function doExecute() { $this->variable += $this->operand; } /** * Returns a textual representation of this node. * * @return string * @ignore */ public function __toString() { return $this->configuration['name'] . ' += ' . $this->configuration['operand']; } } ?>