21 self::CONDITION_CELLIS,
22 self::CONDITION_CONTAINSBLANKS,
23 self::CONDITION_CONTAINSTEXT,
24 self::CONDITION_DATABAR,
25 self::CONDITION_EXPRESSION,
27 self::CONDITION_NOTCONTAINSBLANKS,
28 self::CONDITION_NOTCONTAINSTEXT,
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);
getConditionType()
Get Condition type.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
getHashCode()
Get hash code.
addCondition($pValue)
Add Condition.
const CONDITION_CONTAINSTEXT
setOperatorType($pValue)
Set Operator type.
const OPERATOR_NOTCONTAINS
setConditionType($pValue)
Set Condition type.
getOperatorType()
Get Operator type.
getStopIfTrue()
Get StopIfTrue.
setConditions($pValue)
Set Conditions.
const OPERATOR_LESSTHANOREQUAL
const CONDITION_NOTCONTAINSTEXT
__construct()
Create a new Conditional.
const OPERATOR_BEGINSWITH
const OPERATOR_CONTAINSTEXT
static isValidConditionType(string $type)
Verify if param is valid condition type.
const CONDITION_EXPRESSION
setStopIfTrue($value)
Set StopIfTrue.
const OPERATOR_GREATERTHAN
const OPERATOR_NOTBETWEEN
setStyle(?Style $pValue=null)
Set Style.
setDataBar(ConditionalDataBar $dataBar)
set DataBar.
getConditions()
Get Conditions.
const OPERATOR_GREATERTHANOREQUAL
const CONDITION_NOTCONTAINSBLANKS
const CONDITION_CONTAINSBLANKS