Passed
Push — master ( d88efc...653645 )
by
unknown
12:43 queued 21s
created

ConditionalIconSet::getCfvos()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting;
4
5
class ConditionalIconSet
6
{
7
    /** The icon set to display. */
8
    private ?IconSetValues $iconSetType = null;
9
10
    /**  If true, reverses the default order of the icons in this icon set. */
11
    private ?bool $reverse = null;
12
13
    /** Indicates whether to show the values of the cells on which this icon set is applied. */
14
    private ?bool $showValue = null;
15
16
    /**
17
     * If true, indicates that the icon set is a custom icon set.
18
     * If this value is "true", there MUST be the same number of cfIcon elements
19
     * as cfvo elements.
20
     * If this value is "false", there MUST be 0 cfIcon elements.
21
     */
22
    private ?bool $custom = null;
23
24
    /** @var ConditionalFormatValueObject[] */
25
    private array $cfvos = [];
26
27
    public function getIconSetType(): ?IconSetValues
28
    {
29
        return $this->iconSetType;
30
    }
31
32
    public function setIconSetType(IconSetValues $type): self
33
    {
34
        $this->iconSetType = $type;
35
36
        return $this;
37
    }
38
39
    public function getReverse(): ?bool
40
    {
41
        return $this->reverse;
42
    }
43
44
    public function setReverse(bool $reverse): self
45
    {
46
        $this->reverse = $reverse;
47
48
        return $this;
49
    }
50
51
    public function getShowValue(): ?bool
52
    {
53
        return $this->showValue;
54
    }
55
56
    public function setShowValue(bool $showValue): self
57
    {
58
        $this->showValue = $showValue;
59
60
        return $this;
61
    }
62
63
    public function getCustom(): ?bool
64
    {
65
        return $this->custom;
66
    }
67
68
    public function setCustom(bool $custom): self
69
    {
70
        $this->custom = $custom;
71
72
        return $this;
73
    }
74
75
    /**
76
     * Get the conditional format value objects.
77
     *
78
     * @return ConditionalFormatValueObject[]
79
     */
80
    public function getCfvos(): array
81
    {
82
        return $this->cfvos;
83
    }
84
85
    /**
86
     * Set the conditional format value objects.
87
     *
88
     * @param ConditionalFormatValueObject[] $cfvos
89
     */
90
    public function setCfvos(array $cfvos): self
91
    {
92
        $this->cfvos = $cfvos;
93
94
        return $this;
95
    }
96
}
97