99 $this->style =
new Style(
false,
true);
121 $this->conditionType = $pValue;
145 $this->operatorType = $pValue;
169 $this->text = $value;
193 $this->stopIfTrue = $value;
217 if (!is_array($pValue)) {
220 $this->condition = $pValue;
234 $this->condition[] = $pValue;
258 $this->style = $pValue;
293 $this->conditionType .
294 $this->operatorType .
295 implode(
';', $this->condition) .
296 $this->style->getHashCode() .
306 $vars = get_object_vars($this);
307 foreach ($vars as
$key => $value) {
308 if (is_object($value)) {
309 $this->
$key = clone $value;
311 $this->
$key = $value;
321 return in_array(
$type, self::CONDITION_TYPES);
An exception for terminatinating execution or to throw for unit testing.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
setDataBar(ConditionalDataBar $dataBar)
set DataBar.
setStyle(?Style $pValue=null)
Set Style.
setConditions($pValue)
Set Conditions.
getOperatorType()
Get Operator type.
getHashCode()
Get hash code.
getStopIfTrue()
Get StopIfTrue.
setConditionType($pValue)
Set Condition type.
static isValidConditionType(string $type)
Verify if param is valid condition type.
const CONDITION_EXPRESSION
const OPERATOR_CONTAINSTEXT
const OPERATOR_LESSTHANOREQUAL
getConditionType()
Get Condition type.
const CONDITION_NOTCONTAINSBLANKS
const OPERATOR_BEGINSWITH
const OPERATOR_GREATERTHAN
const OPERATOR_NOTCONTAINS
const CONDITION_CONTAINSTEXT
addCondition($pValue)
Add Condition.
setOperatorType($pValue)
Set Operator type.
const OPERATOR_GREATERTHANOREQUAL
setStopIfTrue($value)
Set StopIfTrue.
const CONDITION_NOTCONTAINSTEXT
getConditions()
Get Conditions.
const OPERATOR_NOTBETWEEN
__construct()
Create a new Conditional.
const CONDITION_CONTAINSBLANKS