DggContainer.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?php
  2. namespace PhpOffice\PhpSpreadsheet\Shared\Escher;
  3. class DggContainer
  4. {
  5. /**
  6. * Maximum shape index of all shapes in all drawings increased by one.
  7. *
  8. * @var int
  9. */
  10. private $spIdMax;
  11. /**
  12. * Total number of drawings saved.
  13. *
  14. * @var int
  15. */
  16. private $cDgSaved;
  17. /**
  18. * Total number of shapes saved (including group shapes).
  19. *
  20. * @var int
  21. */
  22. private $cSpSaved;
  23. /**
  24. * BLIP Store Container.
  25. *
  26. * @var DggContainer\BstoreContainer
  27. */
  28. private $bstoreContainer;
  29. /**
  30. * Array of options for the drawing group.
  31. *
  32. * @var array
  33. */
  34. private $OPT = [];
  35. /**
  36. * Array of identifier clusters containg information about the maximum shape identifiers.
  37. *
  38. * @var array
  39. */
  40. private $IDCLs = [];
  41. /**
  42. * Get maximum shape index of all shapes in all drawings (plus one).
  43. *
  44. * @return int
  45. */
  46. public function getSpIdMax()
  47. {
  48. return $this->spIdMax;
  49. }
  50. /**
  51. * Set maximum shape index of all shapes in all drawings (plus one).
  52. *
  53. * @param int $value
  54. */
  55. public function setSpIdMax($value)
  56. {
  57. $this->spIdMax = $value;
  58. }
  59. /**
  60. * Get total number of drawings saved.
  61. *
  62. * @return int
  63. */
  64. public function getCDgSaved()
  65. {
  66. return $this->cDgSaved;
  67. }
  68. /**
  69. * Set total number of drawings saved.
  70. *
  71. * @param int $value
  72. */
  73. public function setCDgSaved($value)
  74. {
  75. $this->cDgSaved = $value;
  76. }
  77. /**
  78. * Get total number of shapes saved (including group shapes).
  79. *
  80. * @return int
  81. */
  82. public function getCSpSaved()
  83. {
  84. return $this->cSpSaved;
  85. }
  86. /**
  87. * Set total number of shapes saved (including group shapes).
  88. *
  89. * @param int $value
  90. */
  91. public function setCSpSaved($value)
  92. {
  93. $this->cSpSaved = $value;
  94. }
  95. /**
  96. * Get BLIP Store Container.
  97. *
  98. * @return DggContainer\BstoreContainer
  99. */
  100. public function getBstoreContainer()
  101. {
  102. return $this->bstoreContainer;
  103. }
  104. /**
  105. * Set BLIP Store Container.
  106. *
  107. * @param DggContainer\BstoreContainer $bstoreContainer
  108. */
  109. public function setBstoreContainer($bstoreContainer)
  110. {
  111. $this->bstoreContainer = $bstoreContainer;
  112. }
  113. /**
  114. * Set an option for the drawing group.
  115. *
  116. * @param int $property The number specifies the option
  117. * @param mixed $value
  118. */
  119. public function setOPT($property, $value)
  120. {
  121. $this->OPT[$property] = $value;
  122. }
  123. /**
  124. * Get an option for the drawing group.
  125. *
  126. * @param int $property The number specifies the option
  127. *
  128. * @return mixed
  129. */
  130. public function getOPT($property)
  131. {
  132. if (isset($this->OPT[$property])) {
  133. return $this->OPT[$property];
  134. }
  135. return null;
  136. }
  137. /**
  138. * Get identifier clusters.
  139. *
  140. * @return array
  141. */
  142. public function getIDCLs()
  143. {
  144. return $this->IDCLs;
  145. }
  146. /**
  147. * Set identifier clusters. [<drawingId> => <max shape id>, ...].
  148. *
  149. * @param array $pValue
  150. */
  151. public function setIDCLs($pValue)
  152. {
  153. $this->IDCLs = $pValue;
  154. }
  155. }