DataValidator
in package
Validate a cell value according to its validation rules.
Table of Contents
Methods
- isValid() : bool
- Does this cell contain valid value?
- isValueInList() : bool
- Does this cell contain valid value, based on list?
- numericOperator() : bool
Methods
isValid()
Does this cell contain valid value?
public
isValid(Cell $cell) : bool
Parameters
- $cell : Cell
-
Cell to check the value
Return values
boolisValueInList()
Does this cell contain valid value, based on list?
private
isValueInList(Cell $cell) : bool
Parameters
- $cell : Cell
-
Cell to check the value
Return values
boolnumericOperator()
private
numericOperator(DataValidation $dataValidation, int|float $cellValue) : bool
Parameters
- $dataValidation : DataValidation
- $cellValue : int|float