Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UpdateInfoContainer.php
Go to the documentation of this file.
1 <?php
31 {
37  private $_objNum;
38 
44  private $_genNum;
45 
46 
52  private $_isFree;
53 
59  private $_dump = null;
60 
66  public function __construct($objNum, $genNum, $isFree, $dump = null)
67  {
68  $this->_objNum = $objNum;
69  $this->_genNum = $genNum;
70  $this->_isFree = $isFree;
71 
72  if ($dump !== null) {
73  if (strlen($dump) > 1024) {
74  #require_once 'Zend/Pdf.php';
75  $this->_dump = Zend_Pdf::getMemoryManager()->create($dump);
76  } else {
77  $this->_dump = $dump;
78  }
79  }
80  }
81 
82 
88  public function getObjNum()
89  {
90  return $this->_objNum;
91  }
92 
98  public function getGenNum()
99  {
100  return $this->_genNum;
101  }
102 
108  public function isFree()
109  {
110  return $this->_isFree;
111  }
112 
118  public function getObjectDump()
119  {
120  if ($this->_dump === null) {
121  return '';
122  }
123 
124  if (is_string($this->_dump)) {
125  return $this->_dump;
126  }
127 
128  return $this->_dump->getRef();
129  }
130 }
131 
__construct($objNum, $genNum, $isFree, $dump=null)
static getMemoryManager()
Definition: Pdf.php:236