init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
|
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting;
|
||||
|
||||
class ConditionalFormatValueObject
|
||||
{
|
||||
private string $type;
|
||||
|
||||
private null|float|int|string $value;
|
||||
|
||||
private mixed $cellFormula;
|
||||
|
||||
public function __construct(string $type, null|float|int|string $value = null, mixed $cellFormula = null)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->value = $value;
|
||||
$this->cellFormula = $cellFormula;
|
||||
}
|
||||
|
||||
public function getType(): string
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
public function setType(string $type): self
|
||||
{
|
||||
$this->type = $type;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getValue(): null|float|int|string
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public function setValue(null|float|int|string $value): self
|
||||
{
|
||||
$this->value = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCellFormula(): mixed
|
||||
{
|
||||
return $this->cellFormula;
|
||||
}
|
||||
|
||||
public function setCellFormula(mixed $cellFormula): self
|
||||
{
|
||||
$this->cellFormula = $cellFormula;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue