• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPOffice / PhpSpreadsheet / 18013951085

25 Sep 2025 04:20PM UTC coverage: 95.867% (+0.3%) from 95.602%
18013951085

push

github

web-flow
Merge pull request #4663 from oleibman/tweakcoveralls

Tweak Coveralls

45116 of 47061 relevant lines covered (95.87%)

373.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

62.5
/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalFormatValueObject.php
1
<?php
2

3
namespace PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting;
4

5
class ConditionalFormatValueObject
6
{
7
    private string $type;
8

9
    private null|float|int|string $value;
10

11
    private ?string $cellFormula;
12

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

20
    public function __construct(string $type, null|float|int|string $value = null, ?string $cellFormula = null)
36✔
21
    {
22
        $this->type = $type;
36✔
23
        $this->value = $value;
36✔
24
        $this->cellFormula = $cellFormula;
36✔
25
    }
26

27
    public function getType(): string
35✔
28
    {
29
        return $this->type;
35✔
30
    }
31

32
    public function setType(string $type): self
×
33
    {
34
        $this->type = $type;
×
35

36
        return $this;
×
37
    }
38

39
    public function getValue(): null|float|int|string
35✔
40
    {
41
        return $this->value;
35✔
42
    }
43

44
    public function setValue(null|float|int|string $value): self
×
45
    {
46
        $this->value = $value;
×
47

48
        return $this;
×
49
    }
50

51
    public function getCellFormula(): ?string
7✔
52
    {
53
        return $this->cellFormula;
7✔
54
    }
55

56
    public function setCellFormula(?string $cellFormula): self
×
57
    {
58
        $this->cellFormula = $cellFormula;
×
59

60
        return $this;
×
61
    }
62

63
    public function getGreaterThanOrEqual(): ?bool
26✔
64
    {
65
        return $this->greaterThanOrEqual;
26✔
66
    }
67

68
    public function setGreaterThanOrEqual(?bool $greaterThanOrEqual): self
1✔
69
    {
70
        $this->greaterThanOrEqual = $greaterThanOrEqual;
1✔
71

72
        return $this;
1✔
73
    }
74
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc