PHP Class ezcWorkflowConditionNot, Workflow
An object of the ezcWorkflowConditionNot decorates an ezcWorkflowCondition object
and negates its expression.
Mostra 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.
If the condition does not hold false is returned.
getCondition()
public method
Returns the condition that is negated.
public getCondition ( ) : ezcWorkflowCondition |
return |
ezcWorkflowCondition |
|
Property Details
$condition protected_oe property
Holds the expression to negate.
protected ezcWorkflowCondition $condition |
return |
ezcWorkflowCondition |
|