Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace OpenSpout\Common\Entity\Cell;
6
 
7
use DateInterval;
8
use DateTimeImmutable;
9
use OpenSpout\Common\Entity\Cell;
10
use OpenSpout\Common\Entity\Style\Style;
11
 
12
final class FormulaCell extends Cell
13
{
14
    public function __construct(
15
        private readonly string $value,
16
        ?Style $style,
17
        private readonly null|DateInterval|DateTimeImmutable|float|int|string $computedValue = null,
18
    ) {
19
        parent::__construct($style);
20
    }
21
 
22
    public function getValue(): string
23
    {
24
        return $this->value;
25
    }
26
 
27
    public function getComputedValue(): null|DateInterval|DateTimeImmutable|float|int|string
28
    {
29
        return $this->computedValue;
30
    }
31
}