PHP Class ezcWorkflowConditionVariable, Workflow

Inheritance: implements ezcWorkflowCondition
Mostrar archivo Open project: zetacomponents/workflow Class Usage Examples

Protected Properties

Property Type Description
$condition ezcWorkflowCondition The condition that is applied to the variable.
$variableName string The name of the variable the condition is applied to.

Public Methods

Method Description
__construct ( string $variableName, ezcWorkflowCondition $condition ) Constructor.
__toString ( ) : string Returns a textual representation of this condition.
evaluate ( mixed $value ) : boolean Evaluates this condition.
getCondition ( ) : ezcWorkflowCondition Returns the condition.
getVariableName ( ) : string Returns the name of the variable the condition is evaluated for.

Method Details

__construct() public method

Constructor.
public __construct ( string $variableName, ezcWorkflowCondition $condition )
$variableName string
$condition ezcWorkflowCondition

__toString() public method

Returns a textual representation of this condition.
public __toString ( ) : string
return string

evaluate() public method

Evaluates this condition.
public evaluate ( mixed $value ) : boolean
$value mixed
return boolean true when the condition holds, false otherwise.

getCondition() public method

Returns the condition.
public getCondition ( ) : ezcWorkflowCondition
return ezcWorkflowCondition

getVariableName() public method

Returns the name of the variable the condition is evaluated for.
public getVariableName ( ) : string
return string

Property Details

$condition protected_oe property

The condition that is applied to the variable.
protected ezcWorkflowCondition $condition
return ezcWorkflowCondition

$variableName protected_oe property

The name of the variable the condition is applied to.
protected string $variableName
return string