tablepress
/
libraries
/
vendor
/
PhpSpreadsheet
/
Shared
/
Escher
/
DggContainer
/
BstoreContainer
/
BSE.php
BSE.php in TablePress – Tables in WordPress made easy 3.4, at libraries/vendor/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer/BSE.php
| 1 | <?php |
| 2 | |
| 3 | namespace TablePress\PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer; |
| 4 | |
| 5 | use TablePress\PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer; |
| 6 | |
| 7 | class BSE |
| 8 | { |
| 9 | const BLIPTYPE_ERROR = 0x00; |
| 10 | const BLIPTYPE_UNKNOWN = 0x01; |
| 11 | const BLIPTYPE_EMF = 0x02; |
| 12 | const BLIPTYPE_WMF = 0x03; |
| 13 | const BLIPTYPE_PICT = 0x04; |
| 14 | const BLIPTYPE_JPEG = 0x05; |
| 15 | const BLIPTYPE_PNG = 0x06; |
| 16 | const BLIPTYPE_DIB = 0x07; |
| 17 | const BLIPTYPE_TIFF = 0x11; |
| 18 | const BLIPTYPE_CMYKJPEG = 0x12; |
| 19 | |
| 20 | /** |
| 21 | * The parent BLIP Store Entry Container. |
| 22 | * Property is currently unused. |
| 23 | */ |
| 24 | private BstoreContainer $parent; |
| 25 | |
| 26 | /** |
| 27 | * The BLIP (Big Large Image or Picture). |
| 28 | */ |
| 29 | private ?BSE\Blip $blip = null; |
| 30 | |
| 31 | /** |
| 32 | * The BLIP type. |
| 33 | */ |
| 34 | private int $blipType; |
| 35 | |
| 36 | /** |
| 37 | * Set parent BLIP Store Entry Container. |
| 38 | */ |
| 39 | public function setParent(BstoreContainer $parent): void |
| 40 | { |
| 41 | $this->parent = $parent; |
| 42 | } |
| 43 | |
| 44 | public function getParent(): BstoreContainer |
| 45 | { |
| 46 | return $this->parent; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Get the BLIP. |
| 51 | */ |
| 52 | public function getBlip(): ?BSE\Blip |
| 53 | { |
| 54 | return $this->blip; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Set the BLIP. |
| 59 | */ |
| 60 | public function setBlip(BSE\Blip $blip): void |
| 61 | { |
| 62 | $this->blip = $blip; |
| 63 | $blip->setParent($this); |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Get the BLIP type. |
| 68 | */ |
| 69 | public function getBlipType(): int |
| 70 | { |
| 71 | return $this->blipType; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Set the BLIP type. |
| 76 | */ |
| 77 | public function setBlipType(int $blipType): void |
| 78 | { |
| 79 | $this->blipType = $blipType; |
| 80 | } |
| 81 | } |
| 82 |