blob: 6ccc9a06ae58290b5410a26b52f9f4476549c55a [file] [log] [blame]
<?php
/**
* File containing the ezcWorkflowConditionIsLessThan class.
*
* @package Workflow
* @version //autogen//
* @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Condition that evaluates to true if the provided value is less than the reference value.
*
* Typically used together with ezcWorkflowConditionVariable to use the
* condition on a workflow variable.
*
* <code>
* <?php
* $condition = new ezcWorkflowConditionVariable(
'variable name',
* new ezcWorkflowConditionIsLessThan( $comparisonValue )
* );
* ?>
* </code>
*
* @package Workflow
* @version //autogen//
*/
class ezcWorkflowConditionIsLessThan extends ezcWorkflowConditionComparison
{
/**
* Textual representation of the comparison operator.
*
* @var mixed
*/
protected $operator = '<';
/**
* Evaluates this condition with $value and returns true if $value is less than
* the reference value or false if not.
*
* @param mixed $value
* @return boolean true when the condition holds, false otherwise.
* @ignore
*/
public function evaluate( $value )
{
return $value < $this->value;
}
}
?>