init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
60
lib/PhpSpreadsheet/Shared/Escher/DgContainer.php
Normal file
60
lib/PhpSpreadsheet/Shared/Escher/DgContainer.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Shared\Escher;
|
||||
|
||||
use PhpOffice\PhpSpreadsheet\Exception as SpreadsheetException;
|
||||
use PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer;
|
||||
|
||||
class DgContainer
|
||||
{
|
||||
/**
|
||||
* Drawing index, 1-based.
|
||||
*/
|
||||
private ?int $dgId = null;
|
||||
|
||||
/**
|
||||
* Last shape index in this drawing.
|
||||
*/
|
||||
private ?int $lastSpId = null;
|
||||
|
||||
private ?SpgrContainer $spgrContainer = null;
|
||||
|
||||
public function getDgId(): ?int
|
||||
{
|
||||
return $this->dgId;
|
||||
}
|
||||
|
||||
public function setDgId(int $value): void
|
||||
{
|
||||
$this->dgId = $value;
|
||||
}
|
||||
|
||||
public function getLastSpId(): ?int
|
||||
{
|
||||
return $this->lastSpId;
|
||||
}
|
||||
|
||||
public function setLastSpId(int $value): void
|
||||
{
|
||||
$this->lastSpId = $value;
|
||||
}
|
||||
|
||||
public function getSpgrContainer(): ?DgContainer\SpgrContainer
|
||||
{
|
||||
return $this->spgrContainer;
|
||||
}
|
||||
|
||||
public function getSpgrContainerOrThrow(): DgContainer\SpgrContainer
|
||||
{
|
||||
if ($this->spgrContainer !== null) {
|
||||
return $this->spgrContainer;
|
||||
}
|
||||
|
||||
throw new SpreadsheetException('spgrContainer is unexpectedly null');
|
||||
}
|
||||
|
||||
public function setSpgrContainer(DgContainer\SpgrContainer $spgrContainer): DgContainer\SpgrContainer
|
||||
{
|
||||
return $this->spgrContainer = $spgrContainer;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue