Add formula in v3.3.0

This commit is contained in:
David Bonting committed 2022-02-21 13:09:25 +01:00
1 parent cc42c1d29f
commit 71b800468f
3 files changed
+27 -4

No files matched your search

+11
View File
@@ -139,6 +139,9 @@ class Cell
*/
protected function detectType($value)
{
if (CellTypeHelper::isFormula($value)) {
return self::TYPE_FORMULA;
}
if (CellTypeHelper::isBoolean($value)) {
return self::TYPE_BOOLEAN;
}
@@ -198,6 +201,14 @@ class Cell
return $this->type === self::TYPE_DATE;
}
/**
* @return bool
*/
public function isFormula()
{
return $this->type === self::TYPE_FORMULA;
}
/**
* @return bool
*/