<?php
/**
 * @license MIT
 *
 * Modified by emberprice on 29-July-2026 using {@see https://github.com/BrianHenryIE/strauss}.
 */

namespace EmberPrice\Vendor\PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting;

class ConditionalFormatValueObject
{
    private string $type;

    private null|float|int|string $value;

    private ?string $cellFormula;

    /**
     * For icon sets, determines whether this threshold value uses the greater
     * than or equal to operator. False indicates 'greater than' is used instead
     * of 'greater than or equal to'.
     */
    private ?bool $greaterThanOrEqual = null;

    public function __construct(string $type, null|float|int|string $value = null, ?string $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(): ?string
    {
        return $this->cellFormula;
    }

    public function setCellFormula(?string $cellFormula): self
    {
        $this->cellFormula = $cellFormula;

        return $this;
    }

    public function getGreaterThanOrEqual(): ?bool
    {
        return $this->greaterThanOrEqual;
    }

    public function setGreaterThanOrEqual(?bool $greaterThanOrEqual): self
    {
        $this->greaterThanOrEqual = $greaterThanOrEqual;

        return $this;
    }
}
