PHP Class ezcWorkflowConditionVariables, Workflow

Inheritance: implements ezcWorkflowCondition
Show file Open project: zetacomponents/workflow Class Usage Examples

Protected Properties

Property Type Description
$condition ezcWorkflowCondition The condition that is applied to the variable.
$variableNameA string The name of the first variable the condition is applied to.
$variableNameB string The name of the second variable the condition is applied to.

Public Methods

Method Description
__construct ( string $variableNameA, string $variableNameB, ezcWorkflowCondition $condition ) Constructor.
__toString ( ) : string Returns a textual representation of this condition.
evaluate ( mixed $value ) : boolean Evaluates this condition.
getCondition ( ) : ezcWorkflowCondition Returns the condition.
getVariableNames ( ) : array Returns the names of the variables the condition is evaluated for.

Method Details

__construct() public method

Constructor.
public __construct ( string $variableNameA, string $variableNameB, ezcWorkflowCondition $condition )
$variableNameA string
$variableNameB 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

getVariableNames() public method

Returns the names of the variables the condition is evaluated for.
public getVariableNames ( ) : array
return array

Property Details

$condition protected property

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

$variableNameA protected property

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

$variableNameB protected property

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