Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

   1  <?php
   2  
   3  namespace PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer;
   4  
   5  use 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 never currently read.
  23       *
  24       * @var BstoreContainer
  25       */
  26      private $parent; // @phpstan-ignore-line
  27  
  28      /**
  29       * The BLIP (Big Large Image or Picture).
  30       *
  31       * @var ?BSE\Blip
  32       */
  33      private $blip;
  34  
  35      /**
  36       * The BLIP type.
  37       *
  38       * @var int
  39       */
  40      private $blipType;
  41  
  42      /**
  43       * Set parent BLIP Store Entry Container.
  44       */
  45      public function setParent(BstoreContainer $parent): void
  46      {
  47          $this->parent = $parent;
  48      }
  49  
  50      /**
  51       * Get the BLIP.
  52       *
  53       * @return ?BSE\Blip
  54       */
  55      public function getBlip()
  56      {
  57          return $this->blip;
  58      }
  59  
  60      /**
  61       * Set the BLIP.
  62       */
  63      public function setBlip(BSE\Blip $blip): void
  64      {
  65          $this->blip = $blip;
  66          $blip->setParent($this);
  67      }
  68  
  69      /**
  70       * Get the BLIP type.
  71       *
  72       * @return int
  73       */
  74      public function getBlipType()
  75      {
  76          return $this->blipType;
  77      }
  78  
  79      /**
  80       * Set the BLIP type.
  81       *
  82       * @param int $blipType
  83       */
  84      public function setBlipType($blipType): void
  85      {
  86          $this->blipType = $blipType;
  87      }
  88  }