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
use PhpOffice\PhpSpreadsheet\Exception as SpreadsheetException;
6
use PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer;
7
 
8
class DgContainer
9
{
10
    /**
11
     * Drawing index, 1-based.
12
     */
13
    private ?int $dgId = null;
14
 
15
    /**
16
     * Last shape index in this drawing.
17
     */
18
    private ?int $lastSpId = null;
19
 
20
    private ?SpgrContainer $spgrContainer = null;
21
 
22
    public function getDgId(): ?int
23
    {
24
        return $this->dgId;
25
    }
26
 
27
    public function setDgId(int $value): void
28
    {
29
        $this->dgId = $value;
30
    }
31
 
32
    public function getLastSpId(): ?int
33
    {
34
        return $this->lastSpId;
35
    }
36
 
37
    public function setLastSpId(int $value): void
38
    {
39
        $this->lastSpId = $value;
40
    }
41
 
42
    public function getSpgrContainer(): ?SpgrContainer
43
    {
44
        return $this->spgrContainer;
45
    }
46
 
47
    public function getSpgrContainerOrThrow(): SpgrContainer
48
    {
49
        if ($this->spgrContainer !== null) {
50
            return $this->spgrContainer;
51
        }
52
 
53
        throw new SpreadsheetException('spgrContainer is unexpectedly null');
54
    }
55
 
56
    public function setSpgrContainer(SpgrContainer $spgrContainer): SpgrContainer
57
    {
58
        return $this->spgrContainer = $spgrContainer;
59
    }
60
}