* $dec = new ezcWorkflowNodeVariableDecrement ( 'variable name' ) ; * * * Incoming nodes: 1 * Outgoing nodes: 1 * * @package Workflow * @version 1.1rc1 */ class ezcWorkflowNodeVariableDecrement extends ezcWorkflowNodeArithmeticBase { /** * The name of the variable to be decremented. * * @var string */ protected $configuration; /** * Perform variable modification. */ protected function doExecute() { $this->variable--; } /** * Generate node configuration from XML representation. * * @param DOMElement $element */ public static function configurationFromXML( DOMElement $element ) { return $element->getAttribute( 'variable' ); } /** * Generate XML representation of this node's configuration. * * @param DOMElement $element */ public function configurationToXML( DOMElement $element ) { $element->setAttribute( 'variable', $this->configuration ); } /** * Returns a textual representation of this node. * * @return string * @ignore */ public function __toString() { return $this->configuration . '--'; } } ?>