# tablepress/3.4/libraries/vendor/PhpSpreadsheet/Shared/Escher/DgContainer.php

TablePress – Tables in WordPress made easy, version 3.4. 61 lines.

- Page: https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Shared/Escher/DgContainer.php
- Raw: https://pluginprobe.com/plugins/tablepress/3.4/raw/libraries/vendor/PhpSpreadsheet/Shared/Escher/DgContainer.php
- Modified: 2025-01-08T09:25:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Shared/Escher/DgContainer.php#L10-L20`.

```php
<?php

namespace TablePress\PhpOffice\PhpSpreadsheet\Shared\Escher;

use TablePress\PhpOffice\PhpSpreadsheet\Exception as SpreadsheetException;
use TablePress\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(): ?SpgrContainer
	{
		return $this->spgrContainer;
	}

	public function getSpgrContainerOrThrow(): SpgrContainer
	{
		if ($this->spgrContainer !== null) {
			return $this->spgrContainer;
		}

		throw new SpreadsheetException('spgrContainer is unexpectedly null');
	}

	public function setSpgrContainer(SpgrContainer $spgrContainer): SpgrContainer
	{
		return $this->spgrContainer = $spgrContainer;
	}
}

```
