Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NonPersistent.php
Go to the documentation of this file.
1 <?php
27 #require_once 'Zend/Http/UserAgent/Storage.php';
28 
29 
44 {
49  protected $_data;
50 
57  public function isEmpty()
58  {
59  return empty($this->_data);
60  }
61 
70  public function read()
71  {
72  return $this->_data;
73  }
74 
82  public function write($contents)
83  {
84  $this->_data = $contents;
85  }
86 
93  public function clear()
94  {
95  $this->_data = null;
96  }
97 }
$contents
Definition: website.php:14