19 public static function text($cellReference =
'', ?
Cell $pCell = null)
21 if ($pCell === null) {
27 $cellReference = $matches[6] . $matches[7];
28 $worksheetName = trim($matches[3],
"'");
29 $worksheet = (!empty($worksheetName))
30 ? $pCell->getWorksheet()->getParent()->getSheetByName($worksheetName)
31 : $pCell->getWorksheet();
34 $worksheet === null ||
35 !$worksheet->cellExists($cellReference) ||
36 !$worksheet->getCell($cellReference)->isFormula()
41 return $worksheet->getCell($cellReference)->getValue();
const CALCULATION_REGEXP_CELLREF