![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/syn.corals.io/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/ |
<?php namespace PhpOffice\PhpSpreadsheet; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; class NamedFormula extends DefinedName { /** * Create a new Named Formula. */ public function __construct( string $name, ?Worksheet $worksheet = null, ?string $formula = null, bool $localOnly = false, ?Worksheet $scope = null ) { // Validate data if (!isset($formula)) { throw new Exception('You must specify a Formula value for a Named Formula'); } parent::__construct($name, $worksheet, $formula, $localOnly, $scope); } /** * Get the formula value. */ public function getFormula(): string { return $this->value; } /** * Set the formula value. */ public function setFormula(string $formula): self { if (!empty($formula)) { $this->value = $formula; } return $this; } }