Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
<?php
2
 
3
namespace PhpOffice\PhpSpreadsheet\Shared\Escher;
4
 
5
class DggContainer
6
{
7
    /**
8
     * Maximum shape index of all shapes in all drawings increased by one.
9
     */
10
    private int $spIdMax;
11
 
12
    /**
13
     * Total number of drawings saved.
14
     */
15
    private int $cDgSaved;
16
 
17
    /**
18
     * Total number of shapes saved (including group shapes).
19
     */
20
    private int $cSpSaved;
21
 
22
    /**
23
     * BLIP Store Container.
24
     */
25
    private ?DggContainer\BstoreContainer $bstoreContainer = null;
26
 
27
    /**
28
     * Array of options for the drawing group.
29
     */
30
    private array $OPT = [];
31
 
32
    /**
33
     * Array of identifier clusters containg information about the maximum shape identifiers.
34
     */
35
    private array $IDCLs = [];
36
 
37
    /**
38
     * Get maximum shape index of all shapes in all drawings (plus one).
39
     */
40
    public function getSpIdMax(): int
41
    {
42
        return $this->spIdMax;
43
    }
44
 
45
    /**
46
     * Set maximum shape index of all shapes in all drawings (plus one).
47
     */
48
    public function setSpIdMax(int $value): void
49
    {
50
        $this->spIdMax = $value;
51
    }
52
 
53
    /**
54
     * Get total number of drawings saved.
55
     */
56
    public function getCDgSaved(): int
57
    {
58
        return $this->cDgSaved;
59
    }
60
 
61
    /**
62
     * Set total number of drawings saved.
63
     */
64
    public function setCDgSaved(int $value): void
65
    {
66
        $this->cDgSaved = $value;
67
    }
68
 
69
    /**
70
     * Get total number of shapes saved (including group shapes).
71
     */
72
    public function getCSpSaved(): int
73
    {
74
        return $this->cSpSaved;
75
    }
76
 
77
    /**
78
     * Set total number of shapes saved (including group shapes).
79
     */
80
    public function setCSpSaved(int $value): void
81
    {
82
        $this->cSpSaved = $value;
83
    }
84
 
85
    /**
86
     * Get BLIP Store Container.
87
     */
88
    public function getBstoreContainer(): ?DggContainer\BstoreContainer
89
    {
90
        return $this->bstoreContainer;
91
    }
92
 
93
    /**
94
     * Set BLIP Store Container.
95
     */
96
    public function setBstoreContainer(DggContainer\BstoreContainer $bstoreContainer): void
97
    {
98
        $this->bstoreContainer = $bstoreContainer;
99
    }
100
 
101
    /**
102
     * Set an option for the drawing group.
103
     *
104
     * @param int $property The number specifies the option
105
     */
106
    public function setOPT(int $property, mixed $value): void
107
    {
108
        $this->OPT[$property] = $value;
109
    }
110
 
111
    /**
112
     * Get an option for the drawing group.
113
     *
114
     * @param int $property The number specifies the option
115
     */
116
    public function getOPT(int $property): mixed
117
    {
118
        if (isset($this->OPT[$property])) {
119
            return $this->OPT[$property];
120
        }
121
 
122
        return null;
123
    }
124
 
125
    /**
126
     * Get identifier clusters.
127
     */
128
    public function getIDCLs(): array
129
    {
130
        return $this->IDCLs;
131
    }
132
 
133
    /**
134
     * Set identifier clusters. [<drawingId> => <max shape id>, ...].
135
     */
136
    public function setIDCLs(array $IDCLs): void
137
    {
138
        $this->IDCLs = $IDCLs;
139
    }
140
}