PHP Class ezcWorkflowConditionNot, Workflow

An object of the ezcWorkflowConditionNot decorates an ezcWorkflowCondition object and negates its expression.
Inheritance: implements ezcWorkflowCondition
Show file Open project: zetacomponents/workflow Class Usage Examples

Protected Properties

Property Type Description
$condition ezcWorkflowCondition Holds the expression to negate.

Public Methods

Method Description
__construct ( ezcWorkflowCondition $condition ) Constructs a new not condition on $condition.
__toString ( ) : string Returns a textual representation of this condition.
evaluate ( mixed $value ) : boolean Evaluates this condition with the value $value and returns true if the condition holds.
getCondition ( ) : ezcWorkflowCondition Returns the condition that is negated.

Method Details

__construct() public method

Constructs a new not condition on $condition.
public __construct ( ezcWorkflowCondition $condition )
$condition ezcWorkflowCondition

__toString() public method

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

evaluate() public method

If the condition does not hold false is returned.
public evaluate ( mixed $value ) : boolean
$value mixed
return boolean true when the condition holds, false otherwise.

getCondition() public method

Returns the condition that is negated.
public getCondition ( ) : ezcWorkflowCondition
return ezcWorkflowCondition

Property Details

$condition protected property

Holds the expression to negate.
protected ezcWorkflowCondition $condition
return ezcWorkflowCondition