Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 12... Línea 12...
12
final class FormulaCell extends Cell
12
final class FormulaCell extends Cell
13
{
13
{
14
    public function __construct(
14
    public function __construct(
15
        private readonly string $value,
15
        private readonly string $value,
16
        ?Style $style,
16
        ?Style $style,
17
        private readonly null|DateInterval|DateTimeImmutable|float|int|string $computedValue = null,
17
        private readonly null|bool|DateInterval|DateTimeImmutable|float|int|string $computedValue = null,
18
    ) {
18
    ) {
19
        parent::__construct($style);
19
        parent::__construct($style);
20
    }
20
    }
Línea 21... Línea 21...
21
 
21
 
22
    public function getValue(): string
22
    public function getValue(): string
23
    {
23
    {
24
        return $this->value;
24
        return $this->value;
Línea 25... Línea 25...
25
    }
25
    }
26
 
26
 
27
    public function getComputedValue(): null|DateInterval|DateTimeImmutable|float|int|string
27
    public function getComputedValue(): null|bool|DateInterval|DateTimeImmutable|float|int|string
28
    {
28
    {
29
        return $this->computedValue;
29
        return $this->computedValue;