Add formula in v3.3.0
This commit is contained in:
1 parent
cc42c1d29f
commit
71b800468f
3 files changed
+27
-4
No files matched your search
@@ -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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user